travis-web/app/components/hooks-list-item.coffee
2015-04-23 10:54:54 +02:00

22 lines
488 B
CoffeeScript

`import Ember from 'ember'`
`import config from 'travis/config/environment'`
HooksListItemComponent = Ember.Component.extend
tagName: 'li'
classNames: ['row']
classNameBindings: ['hook.active:active']
githubOrgsOauthAccessSettingsUrl: config.githubOrgsOauthAccessSettingsUrl
actions:
handleToggleError: ->
@set("showError", true)
close: ->
@send('resetErrors')
resetErrors: ->
@set("showError", false)
`export default HooksListItemComponent`