%= turbo_frame_tag "modal" do %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".link_enable_banking_title")) %> <% dialog.with_body do %> <% items = local_assigns[:enable_banking_items] || @enable_banking_items || Current.family.enable_banking_items.where.not(client_certificate: nil) %> <% if items&.any? %> <% # Find the first item with valid session to use for "Add Connection" button item_for_new_connection = items.find(&:session_valid?) # Check if any item needs initial connection (configured but no session yet) item_needing_connection = items.find { |i| !i.session_valid? && !i.session_expired? } %>
<%= item.aspsp_name || "Connected Bank" %>
Session expires: <%= item.session_expires_at&.strftime("%b %d, %Y") || "Unknown" %>
<%= item.aspsp_name || "Connection" %>
Session expired - re-authorization required
Configured
Ready to connect a bank
Enable Banking connection not configured
Before you can link Enable Banking accounts, you need to configure your Enable Banking connection.
Setup Steps: