Refactor: Move ID out of partial

Because it can only be used once. But the classname can be used each time the partial is included.
This commit is contained in:
David Cook
2023-12-06 09:57:24 +11:00
parent 32a4088386
commit 7fe2284d84
2 changed files with 2 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
#flashes
.flash-container
- if defined? flashes
- flashes.each do |type, msg|
.animate-show{"data-controller": "flash", "data-flash-auto-close-value": type == 'success'}

View File

@@ -3,7 +3,7 @@
= yield :stripe_js
#wrapper
.flash-container
#flashes
= render partial: "admin/shared/flashes", locals: { flashes: flash }
= render partial: "spree/layouts/admin/progress_spinner"