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
Use new attribute "dismiss_label" to ensure that the label is translated
Henriette Darge36e12df3e398
diff --git a/modules/meeting/app/components/banner_message_component.html.erb b/modules/meeting/app/components/banner_message_component.html.erbindex 9033689671d..76899d634f4 100644--- a/modules/meeting/app/components/banner_message_component.html.erb+++ b/modules/meeting/app/components/banner_message_component.html.erb@@ -28,5 +28,12 @@ See COPYRIGHT and LICENSE files for more details.++#%><%=- render(Primer::Alpha::Banner.new(full:, full_when_narrow:, dismiss_scheme:, icon:, scheme:,test_selector:)) { message }+ render(Primer::Alpha::Banner.new(full:,+ full_when_narrow:,+ dismiss_scheme:,+ dismiss_label:,+ icon:,+ scheme:,+ test_selector:,+ )) { message }%>diff --git a/modules/meeting/app/components/banner_message_component.rb b/modules/meeting/app/components/banner_message_component.rbindex 4a5833c4c9b..70f33ff8c5c 100644--- a/modules/meeting/app/components/banner_message_component.rb+++ b/modules/meeting/app/components/banner_message_component.rb@@ -27,7 +27,13 @@#++class BannerMessageComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent- def initialize(message: nil, full: true, full_when_narrow: false, dismiss_scheme: :hide, icon: false, scheme: :default,+ def initialize(message: nil,+ full: true,+ full_when_narrow: false,+ dismiss_scheme: :hide,+ dismiss_label: I18n.t('button_close'),+ icon: false,+ scheme: :default,test_selector: "primer-banner-message-component")super@@ -35,10 +41,11 @@ class BannerMessageComponent < ApplicationComponent # rubocop:disable OpenProjec@full = full@full_when_narrow = full_when_narrow@dismiss_scheme = dismiss_scheme+ @dismiss_label = dismiss_label@icon = icon@scheme = scheme@test_selector = test_selectorend- attr_reader :message, :full, :full_when_narrow, :dismiss_scheme, :icon, :scheme, :test_selector+ attr_reader :message, :full, :full_when_narrow, :dismiss_scheme, :dismiss_label, :icon, :scheme, :test_selectorend