travis-web/app/components/flash-item.coffee
2015-09-04 09:03:50 +02:00

16 lines
298 B
CoffeeScript

`import Ember from 'ember'`
FlashItemComponent = Ember.Component.extend
tagName: 'li'
classNameBindings: ['type']
type: (->
@get('flash.type') || 'broadcast'
).property('flash.type')
actions:
close: ->
this.attrs.close(@get('flash'))
`export default FlashItemComponent`