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