Skip to content

Commit

Permalink
[#51396] Update invalid provider flash error to primer (#14319)
Browse files Browse the repository at this point in the history
  • Loading branch information
akabiru authored Dec 4, 2023
1 parent 83d2264 commit 44b5747
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def show_local_breadcrumb
def ensure_valid_provider_type_selected
short_provider_type = params[:provider]
if short_provider_type.blank? || (@provider_type = ::Storages::Storage::PROVIDER_TYPE_SHORT_NAMES[short_provider_type]).blank?
flash[:error] = I18n.t('storages.error_invalid_provider_type')
flash[:primer_banner] = { message: I18n.t('storages.error_invalid_provider_type'), scheme: :danger }
redirect_to admin_settings_storages_path
end
end
Expand Down

0 comments on commit 44b5747

Please sign in to comment.