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

Update header to turbo stream

Oliver Günther05cebd500215
diff --git a/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb b/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb
index d5119618d0a..f18d76f5c9f 100644
--- a/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb
+++ b/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb
@@ -259,6 +259,9 @@ module Meetings
def move_item_within_section_via_turbo_stream(meeting_agenda_item: @meeting_agenda_item)
move_item_via_turbo_stream(meeting_agenda_item:)
+ # Update the header for updated timestamp
+ update_header_component_via_turbo_stream
+
# update the displayed time slots of all other items in the section
update_show_items_of_section_via_turbo_stream(meeting_section: meeting_agenda_item.meeting_section)
end
@@ -266,6 +269,9 @@ module Meetings
def move_item_to_other_section_via_turbo_stream(old_section:, current_section:, meeting_agenda_item: @meeting_agenda_item)
move_item_via_turbo_stream(meeting_agenda_item:)
+ # Update the header for updated timestamp
+ update_header_component_via_turbo_stream
+
# update the old section
update_section_header_via_turbo_stream(meeting_section: old_section)