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 behaviour to not auto add new agenda items

Mir Bhatia6c967774231b
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 7557049e5c2..14dcd210ca3 100644
--- a/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb
+++ b/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb
@@ -206,10 +206,11 @@ module Meetings
update_list_via_turbo_stream(form_hidden: true)
update_new_component_via_turbo_stream(
- hidden: false,
+ hidden: true,
meeting_section: meeting_agenda_item.meeting_section,
type: @agenda_item_type
)
+
else
update_section_header_via_turbo_stream(meeting_section: meeting_agenda_item.meeting_section)
@@ -224,11 +225,13 @@ module Meetings
)
update_new_component_via_turbo_stream(
- hidden: false,
+ hidden: true,
meeting_section: meeting_agenda_item.meeting_section,
type: @agenda_item_type
)
+ update_new_button_via_turbo_stream(disabled: false)
+
update_show_items_via_turbo_stream
end
end