mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
Auto dismiss success flashes only
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#flashes
|
||||
- if defined? flashes
|
||||
- flashes.each do |type, msg|
|
||||
.animate-show{"data-controller": "flash", "data-flash-auto-close-value": "true"}
|
||||
.animate-show{"data-controller": "flash", "data-flash-auto-close-value": type == 'success'}
|
||||
.flash{type: "#{type}", class: "#{type}"}
|
||||
.msg= msg
|
||||
.actions
|
||||
|
||||
Reference in New Issue
Block a user