Prepare BuildView for ember-cli
This commit is contained in:
parent
c205529295
commit
f26d3edcc5
|
@ -1,9 +1,14 @@
|
|||
Travis.reopen
|
||||
BuildView: Travis.View.extend
|
||||
require 'helpers/helpers'
|
||||
|
||||
colorForState = Travis.Helpers.colorForState
|
||||
|
||||
View = Travis.View.extend
|
||||
classNameBindings: ['color', 'loading']
|
||||
buildBinding: 'controller.build'
|
||||
loadingBinding: 'controller.loading'
|
||||
|
||||
color: (->
|
||||
Travis.Helpers.colorForState(@get('build.state'))
|
||||
colorForState(@get('build.state'))
|
||||
).property('build.state')
|
||||
|
||||
Travis.BuildView = View
|
||||
|
|
Loading…
Reference in New Issue
Block a user