Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add missing data attribtue on the submit button of the primer dialog which is needed to reset all changes in the background when the button is clicked (#50489)

Henriette Dargef1eaeb74501b
diff --git a/modules/meeting/app/components/meetings/sidebar/details_form_component.html.erb b/modules/meeting/app/components/meetings/sidebar/details_form_component.html.erb
index 4931236d2be..4a44dd61a62 100644
--- a/modules/meeting/app/components/meetings/sidebar/details_form_component.html.erb
+++ b/modules/meeting/app/components/meetings/sidebar/details_form_component.html.erb
@@ -40,7 +40,9 @@
t("button_cancel")
end
- modal_footer.with_component(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) do
+ modal_footer.with_component(Primer::ButtonComponent.new(scheme: :primary,
+ type: :submit,
+ data: { 'submit-dialog-id': "edit-meeting-details-dialog" })) do
t("button_save")
end
end
diff --git a/modules/meeting/app/components/meetings/sidebar/participants_form_component.html.erb b/modules/meeting/app/components/meetings/sidebar/participants_form_component.html.erb
index dbd369a60c7..aa926b450b0 100644
--- a/modules/meeting/app/components/meetings/sidebar/participants_form_component.html.erb
+++ b/modules/meeting/app/components/meetings/sidebar/participants_form_component.html.erb
@@ -97,7 +97,9 @@
t("button_cancel")
end
- footer.with_component(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) do
+ footer.with_component(Primer::ButtonComponent.new(scheme: :primary,
+ type: :submit,
+ data: { 'submit-dialog-id': "edit-participants-dialog" })) do
t("button_save")
end
end
diff --git a/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb b/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb
index 30319961c8f..95ed5abe88e 100644
--- a/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb
+++ b/modules/meeting/app/components/work_package_meetings_tab/add_work_package_to_meeting_form_component.html.erb
@@ -31,7 +31,9 @@
)) do
t("button_cancel")
end
- collection1.with_component(Primer::ButtonComponent.new(scheme: :primary, type: :submit)) do
+ collection1.with_component(Primer::ButtonComponent.new(scheme: :primary,
+ type: :submit,
+ data: { 'submit-dialog-id': "add-work-package-to-meeting-dialog" })) do
t("button_save")
end
end