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

Fix double submit in meetings agend

Oliver Güntherb646fcf243f4
diff --git a/modules/meeting/app/views/meeting_contents/_form.html.erb b/modules/meeting/app/views/meeting_contents/_form.html.erb
index 40ce71936fc..be0b55304ea 100644
--- a/modules/meeting/app/views/meeting_contents/_form.html.erb
+++ b/modules/meeting/app/views/meeting_contents/_form.html.erb
@@ -48,6 +48,8 @@ See COPYRIGHT and LICENSE files for more details.
<% path = send("preview_#{content_type}_path", content.meeting) %>
<p><%= f.text_field :journal_notes, label: :comments %></p>
- <p><%= styled_button_tag t(:button_save), class: '-highlight -with-icon icon-checkmark button--save-agenda' %>
+ <%= styled_button_tag t(:button_save),
+ class: '-highlight -with-icon icon-checkmark button--save-agenda',
+ data: { disable_with: I18n.t(:label_loading) } %>
<%= link_to t(:button_cancel), "#", data: { 'content-type': content_type }, class: 'button -with-icon icon-cancel button--cancel-agenda' %>
<% end %>