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

Change success flash message

Oliver Günther35499379175f
diff --git a/modules/meeting/app/controllers/meeting_agenda_items_controller.rb b/modules/meeting/app/controllers/meeting_agenda_items_controller.rb
index 4b90018ba0d..c153c2a135d 100644
--- a/modules/meeting/app/controllers/meeting_agenda_items_controller.rb
+++ b/modules/meeting/app/controllers/meeting_agenda_items_controller.rb
@@ -204,7 +204,9 @@ class MeetingAgendaItemsController < ApplicationController
.call(meeting_id: next_occurrence.id, meeting_section: nil)
if update_call.success?
- render_success_flash_message_via_turbo_stream(message: I18n.t(:notice_successful_update))
+ render_success_flash_message_via_turbo_stream(
+ message: I18n.t(:text_agenda_item_moved_to_next_meeting, date: format_date(next_occurrence.start_time))
+ )
remove_item_via_turbo_stream(clear_slate: @meeting.agenda_items.empty?)
update_header_component_via_turbo_stream
respond_with_turbo_streams
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index f81a43071e9..b1171b5766b 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -474,6 +474,7 @@ en:
text_agenda_item_no_notes: "No notes provided"
text_agenda_item_not_editable_anymore: "This agenda item is not editable anymore."
text_agenda_item_move_next_meeting: "Are you sure you want to move this to the next meeting on %{date} at %{time}?"
+ text_agenda_item_moved_to_next_meeting: "Agenda item moved to the next meeting, on %{date}"
text_work_package_has_no_upcoming_meeting_agenda_items: "This work package is not scheduled in an upcoming meeting agenda yet."
text_agenda_item_move_next_meeting_cancelled: "The next meeting in this series has been cancelled."
text_work_package_add_to_meeting_hint: 'Use the "Add to meeting" button to add this work package to an upcoming meeting.'