Skip to content

Commit

Permalink
Merge pull request #5681 from nebulab/spaghetticode/fix-admin-flash
Browse files Browse the repository at this point in the history
[ADMIN] Fix flash messages coloring
  • Loading branch information
spaghetticode authored Mar 7, 2024
2 parents 885a453 + 991a179 commit 75d3196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/app/views/layouts/solidus_admin/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

<div class="fixed inset-x-0 bottom-3 flex items-center justify-center flex-col gap-3 pointer-events-none" role="alert">
<% flash.each do |key, message| %>
<%= render component("ui/toast").new(text: message, scheme: key == :error ? :error : :default) %>
<%= render component("ui/toast").new(text: message, scheme: key.to_sym == :error ? :error : :default) %>
<% end %>
</div>
</body>
Expand Down

0 comments on commit 75d3196

Please sign in to comment.