d509588cd2
Ember update - update ember-cli, ember-data, and ember to 3.4 series
13 lines
284 B
JavaScript
13 lines
284 B
JavaScript
import { inject as service } from '@ember/service';
|
|
import Helper from '@ember/component/helper';
|
|
|
|
export default Helper.extend({
|
|
flashMessages: service(),
|
|
|
|
compute([message, type]) {
|
|
return () => {
|
|
this.get('flashMessages')[type || 'success'](message);
|
|
};
|
|
},
|
|
});
|