Skip to content

Commit

Permalink
bs4 fix account created banner type (#4440)
Browse files Browse the repository at this point in the history
use success banner for bs4
  • Loading branch information
charlienparker authored and kristinmerbach committed Sep 6, 2024
1 parent 047dbc9 commit 0e9c7fc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/users/registrations_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ def configure_sign_up_params

def set_sign_up_warning
return unless is_flashing_format?
set_flash_message :notice, @bs4 ? :signed_up_bs4 : :signed_up, site_name: EnrollRegistry[:enroll_app].setting(:short_name).item
flash_type = @bs4 ? :success : :notice
flash_message = @bs4 ? :signed_up_bs4 : :signed_up
set_flash_message flash_type, flash_message, site_name: EnrollRegistry[:enroll_app].setting(:short_name).item
end

def enable_bs4_layout
Expand Down

0 comments on commit 0e9c7fc

Please sign in to comment.