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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
fix failing spec due to missing UI update
Jonas Jabariec0599e6542d
diff --git a/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb b/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rbindex 2f92c705fe6..a58e21af65f 100644--- a/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb+++ b/modules/meeting/app/controllers/concerns/meetings/agenda_component_streams.rb@@ -302,9 +302,11 @@ module Meetingsenddef remove_section_via_turbo_stream(meeting_section: @meeting_section)- if meeting_section.meeting.sections.count == 0- # show blank slate again through rerendering the list component+ if meeting_section.meeting.sections.count <= 1+ # show blank slate again through rerendering the list component -> count == 0+ # or hide section wrapper of first (potentially) untitled section -> count == 1update_list_via_turbo_stream+ # CODE MAINTENANCE: potentially loosing edit state in last sectionelseremove_via_turbo_stream(component: MeetingSections::ShowComponent.new(