diff --git a/app/components/admin/import/jira/import_runs/select_projects/list_header_component.html.erb b/app/components/admin/import/jira/import_runs/select_projects/list_header_component.html.erb index 2edd10c1330..b2fce231c38 100644 --- a/app/components/admin/import/jira/import_runs/select_projects/list_header_component.html.erb +++ b/app/components/admin/import/jira/import_runs/select_projects/list_header_component.html.erb @@ -21,7 +21,7 @@ scheme: :invisible, tag: :a, href: check_all_url, - data: { turbo_stream: true } + data: { action: "click->admin--jira-projects#checkAll" } ) ) do |button| button.with_leading_visual_icon(icon: :"check-circle") @@ -34,7 +34,7 @@ scheme: :invisible, tag: :a, href: uncheck_all_url, - data: { turbo_stream: true } + data: { action: "click->admin--jira-projects#uncheckAll" } ) ) do |button| button.with_leading_visual_icon(icon: :"x-circle") diff --git a/app/components/admin/import/jira/import_runs/select_projects/modal_component.html.erb b/app/components/admin/import/jira/import_runs/select_projects/modal_component.html.erb index fcadac7f789..bbc026ef1db 100644 --- a/app/components/admin/import/jira/import_runs/select_projects/modal_component.html.erb +++ b/app/components/admin/import/jira/import_runs/select_projects/modal_component.html.erb @@ -39,11 +39,24 @@ I18n.t(:button_cancel) end modal_footer.with_component( - Admin::Import::Jira::ImportRuns::SelectProjects::ModalSubmitComponent.new( - jira_import: @jira_import, - count: selected_count - ) + content_tag(:div, data: { "admin--jira-projects-target": "submitButton" }) { + render(Admin::Import::Jira::ImportRuns::SelectProjects::ModalSubmitComponent.new( + jira_import: @jira_import, + count: selected_count + )) + } ) + modal_footer.with_component( + Primer::Beta::Button.new( + scheme: :primary, + tag: :a, + hidden: true, + data: { "admin--jira-projects-target": "spinnerButton" } + ) + ) do |spinner_button| + spinner_button.with_trailing_visual_icon(icon: :sync, animation: :rotate, style: "min-width: 2rem") + I18n.t(:button_continue) + end end end end diff --git a/app/components/admin/import/jira/import_runs/select_projects/modal_submit_component.html.erb b/app/components/admin/import/jira/import_runs/select_projects/modal_submit_component.html.erb index 082135deb7e..6d307a2159f 100644 --- a/app/components/admin/import/jira/import_runs/select_projects/modal_submit_component.html.erb +++ b/app/components/admin/import/jira/import_runs/select_projects/modal_submit_component.html.erb @@ -10,7 +10,7 @@ } ) ) do |button| - button.with_trailing_visual_counter(count: count) + button.with_trailing_visual_counter(count: count, style: "min-width: 2rem") I18n.t(:button_continue) end end %> diff --git a/app/components/work_package_types/form_configuration/main_content_component.html.erb b/app/components/work_package_types/form_configuration/main_content_component.html.erb index b54e4e5f80d..ee3580e0774 100644 --- a/app/components/work_package_types/form_configuration/main_content_component.html.erb +++ b/app/components/work_package_types/form_configuration/main_content_component.html.erb @@ -1,7 +1,6 @@ <%= component_wrapper( - class: "type-form-configuration-page--main-inner", - data: main_inner_data + class: "type-form-configuration-page--main-inner" ) do flex_layout do |main| main.with_row do diff --git a/app/components/work_package_types/form_configuration/main_content_component.rb b/app/components/work_package_types/form_configuration/main_content_component.rb index bae22743782..6313c210f96 100644 --- a/app/components/work_package_types/form_configuration/main_content_component.rb +++ b/app/components/work_package_types/form_configuration/main_content_component.rb @@ -47,13 +47,6 @@ module WorkPackageTypes @ee_available end - def main_inner_data - { - controller: "admin--type-form-configuration--drag-and-drop", - "admin--type-form-configuration--drag-and-drop-handle-selector-value": ".group-handle" - } - end - def groups_container_data { "test-selector": "type-form-configuration-groups-container", diff --git a/app/components/work_package_types/form_configuration_component.html.erb b/app/components/work_package_types/form_configuration_component.html.erb index 4fd270636f4..22562fe20f2 100644 --- a/app/components/work_package_types/form_configuration_component.html.erb +++ b/app/components/work_package_types/form_configuration_component.html.erb @@ -42,7 +42,10 @@ See COPYRIGHT and LICENSE files for more details. <% end %> <% content.with_main(classes: "type-form-configuration-page--main") do %> -