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 template info banner behaviour and label

Mir Bhatiad908b397e394
diff --git a/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb b/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb
index 71612318dec..788efca4940 100644
--- a/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb
+++ b/modules/meeting/app/components/meeting_agenda_items/list_component.html.erb
@@ -1,7 +1,7 @@
<%=
component_wrapper(data: wrapper_data_attributes) do
flex_layout(mb: 3) do |flex|
- if @meeting.template? && !empty?
+ if @meeting.template?
flex.with_row(mb: 3) do
render Primer::Alpha::Banner.new(scheme: :default,
icon: :info,
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index e81c3b9cbfe..99d34a27655 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -254,7 +254,7 @@ en:
The first meeting has been successfuly created from template.
All future meetings will be created automatically at the time of the previous occurrence.
template:
- button_finalize: "Finish template"
+ button_finalize: "Open first meeting"
blank_title: "Your meeting series template is empty"
description: >
This template will be used whenever new meetings in the series get created.
diff --git a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb
index 5a781213c2c..4c83041dfd2 100644
--- a/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb
+++ b/modules/meeting/spec/features/recurring_meetings/recurring_meeting_create_spec.rb
@@ -118,9 +118,9 @@ RSpec.describe "Recurring meetings creation",
expect(page).to have_css("#meetings-side-panel-participants-component", text: 2)
- expect(page).to have_link("Finish template")
+ expect(page).to have_link("Open first meeting")
- click_link_or_button "Finish template"
+ click_link_or_button "Open first meeting"
wait_for_network_idle
# Sends out an invitation to the series