% polling_data = if @timed_out {} else { controller: "polling", polling_frame_id_value: "modal", polling_url_value: connection_status_sophtron_item_path(@sophtron_item, accountable_type: @accountable_type, account_id: @account_id, return_to: @return_to, poll_attempt: @next_poll_attempt, post_mfa: @post_mfa_polling, manual_sync: @manual_sync_flow, sync_id: @manual_sync_id, sophtron_account_id: @manual_sync_sophtron_account_id), polling_interval_value: @poll_interval_ms } end %> <% check_again_attempt = @timed_out ? 1 : (@next_poll_attempt || @poll_attempt.to_i + 1) %> <%= turbo_frame_tag "modal" do %> <%= tag.div(data: polling_data) do %> <%= render DS::Dialog.new do |dialog| %> <% dialog.with_header(title: t(".title")) %> <% dialog.with_body do %>
<%= @timed_out ? t(".timeout") : t(".waiting") %>
<%= t(".attempt", attempt: (@poll_attempt || 1), max: @max_poll_attempts) %>