ryanto / ember-flash-message

Flash message for Ember.JS templates.
49 stars 23 forks source link

Flash Message Types #10

Closed dcalhoun closed 10 years ago

dcalhoun commented 10 years ago

It'd be helpful to have different types of flash messages (e.g. – notice, success, error). Ideally the type of message would be outputted as a HTML class on the view so that they could be styled appropriately.

Creating a flash:

router.flashMessage('success', 'You made it!');
router.flashMessage('notice', 'Be warned.');
router.flashMessage('error', 'You have made a huge mistake.');

Resulting Ember view HTML:

<div class="flash-message success">You've made it!</div>
<div class="flash-message notice">Be warned.</div>
<div class="flash-message error">You've made a huge mistake.</div>
doodzik commented 10 years ago

i like it. i'm in favor that this behavior feature.

joshsmith commented 10 years ago

+1

Emerson commented 10 years ago

Also need this +1

ryanto commented 10 years ago

Done in #12