
We sometimes miss pusher updates, which started to be more common lately. Until we investigate what's going on, this should be a good workaround for keeping UI in sync with the DB.
16 lines
384 B
CoffeeScript
16 lines
384 B
CoffeeScript
`import { colorForState } from 'travis/utils/helpers'`
|
|
`import BasicView from 'travis/views/basic'`
|
|
`import Polling from 'travis/mixins/polling'`
|
|
|
|
View = BasicView.extend Polling,
|
|
classNameBindings: ['color']
|
|
buildBinding: 'controller.build'
|
|
|
|
pollModels: 'controller.build'
|
|
|
|
color: (->
|
|
colorForState(@get('build.state'))
|
|
).property('build.state')
|
|
|
|
`export default View`
|