Conversation
|
FYI: there will be notice, alert and maybe other cases. |
|
Kay, I went ahead and cleaned up the way we do flash messages, which was decently bad and is now pretty good. Defines four levels: Which accepts a translation value and translation options (or just a simple string to display, in the case of symbols or things already translated on the server side) I also switched it to a $broadcast / $on system, which is more reliable I think and more consistent with the way we do things in the rest of the app. |
|
🔦! |
| @display = => @flash and (@modal == @modalIsVisible()) | ||
| @dismiss = => @flash = null | ||
|
|
||
| FlashService.success window.Loomio.flash.success if window.Loomio.flash.success? |
There was a problem hiding this comment.
Maybe this init block should be moved to app.coffee in the future? Anyway this whole thing looks great. Thanks @gdpelican.
Set flash from rails if one exists
|
Yeah! I tried putting it there, but had that code run before the On Thu, Apr 9, 2015 at 4:10 AM, Robert Guthrie [email protected]
|
No description provided.