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
Change confirmation text when section is empty
Oliver Günther9e226c489a8c
diff --git a/modules/meeting/app/components/meeting_sections/header_component.rb b/modules/meeting/app/components/meeting_sections/header_component.rbindex 18f2e1f5336..9b5a6c7f219 100644--- a/modules/meeting/app/components/meeting_sections/header_component.rb+++ b/modules/meeting/app/components/meeting_sections/header_component.rb@@ -145,11 +145,17 @@ module MeetingSectionsenddef delete_action_item(menu)+ confirm_text =+ if @meeting_section.agenda_items.any?+ t("meeting_section.delete_confirmation")+ else+ t("text_are_you_sure")+ endmenu.with_item(label: t("text_destroy"),scheme: :danger,href: meeting_section_path(@meeting_section.meeting, @meeting_section),form_arguments: {- method: :delete, data: { confirm: t("meeting_section.delete_confirmation"), "turbo-stream": true,+ method: :delete, data: { confirm: confirm_text, "turbo-stream": true,test_selector: "meeting-section-delete" }}) do |item|item.with_leading_visual_icon(icon: :trash)