mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
10 lines
251 B
CoffeeScript
10 lines
251 B
CoffeeScript
Darkswarm.factory 'Flash', (flash)->
|
|
new class Flash
|
|
loadFlash: (rails_flash)->
|
|
for type, message of rails_flash
|
|
switch type
|
|
when "notice"
|
|
flash.info = message
|
|
else
|
|
flash[type] = message
|