Files
openfoodnetwork/app/assets/javascripts/darkswarm/services/flash.js.coffee
Rohan Mitchell be644bdcc3 Revert "Reworking flash messages hooray"
This reverts commit c9d0091cd9.
2014-06-06 16:59:47 +10:00

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