travis-web/app/components/flash-display.coffee
2015-09-09 10:36:12 +02:00

16 lines
302 B
CoffeeScript

`import Ember from 'ember'`
FlashDisplayComponent = Ember.Component.extend
flashes: Ember.inject.service()
classNames: ['flash']
tagName: 'ul'
messagesBinding: 'flashes.messages'
actions:
closeMessage: (msg) ->
@get('flashes').close(msg)
`export default FlashDisplayComponent`