0ccc8467ec
Adds replication engine and core in-repo addon
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);
|
|
};
|
|
},
|
|
});
|