travis-web/app/components/flash-display.js
2016-01-04 13:15:14 +01:00

15 lines
281 B
JavaScript

import Ember from 'ember';
export default Ember.Component.extend({
flashes: Ember.inject.service(),
classNames: ['flash'],
tagName: 'ul',
messagesBinding: 'flashes.messages',
actions: {
closeMessage(msg) {
return this.get('flashes').close(msg);
}
}
});