travis-web/assets/scripts/app/components.coffee
Henrik Hodne e5ae06afeb Revert "Use switches on settings pane"
This reverts commit 357b176f93.

This commit seems to be where the bug with enabling hooks was
introduced, and reverting this commit seems to fix that bug.

Conflicts:
	assets/scripts/app/controllers.coffee
	assets/scripts/app/templates/repo/settings.hbs
2014-02-12 09:55:24 -06:00

10 lines
222 B
CoffeeScript

Travis.TravisSwitchComponent = Ember.Component.extend
tagName: 'a'
classNames: ['travis-switch']
classNameBindings: ['active']
activeBinding: 'target.active'
click: ->
@sendAction('action', @get('target'))