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

chore[Op#50985]: Define common settings as defaults

Kabiru Mwenja9008257445d3
diff --git a/modules/meeting/app/components/banner_message_component.rb b/modules/meeting/app/components/banner_message_component.rb
index cfec9cf6a50..0c865f821c5 100644
--- a/modules/meeting/app/components/banner_message_component.rb
+++ b/modules/meeting/app/components/banner_message_component.rb
@@ -27,7 +27,7 @@
#++
class BannerMessageComponent < ApplicationComponent # rubocop:disable OpenProject/AddPreviewForViewComponent
- def initialize(message: nil, full: false, full_when_narrow: false, dismiss_scheme: :none, icon: false, scheme: :default,
+ def initialize(message: nil, full: true, full_when_narrow: false, dismiss_scheme: :hide, icon: false, scheme: :default,
test_selector: "primer-banner-message-component")
super
diff --git a/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb b/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb
index dd40f150c1c..bdb512f3597 100644
--- a/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb
+++ b/modules/storages/app/controllers/storages/admin/oauth_clients_controller.rb
@@ -77,12 +77,7 @@ class Storages::Admin::OAuthClientsController < ApplicationController
format.turbo_stream { render :create }
end
elsif @storage.provider_type_one_drive?
- flash[:primer_banner] = {
- message: I18n.t(:'storages.notice_successful_storage_connection'),
- scheme: :success,
- dismiss_scheme: :hide,
- full: true
- }
+ flash[:primer_banner] = { message: I18n.t(:'storages.notice_successful_storage_connection'), scheme: :success }
redirect_to admin_settings_storages_path
else
raise "Unsupported provider type: #{@storage.short_provider_type}"