Skip to content

Commit

Permalink
chore[Op#50985]: Define common settings as defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru committed Nov 30, 2023
1 parent f4a06c4 commit 0f5ea25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion modules/meeting/app/components/banner_message_component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,7 @@ def create # rubocop:disable Metrics/AbcSize
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}"
Expand Down

0 comments on commit 0f5ea25

Please sign in to comment.