mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
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:
@@ -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'}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user