travis-web/app/components/build-wrapper.js
2016-01-12 16:55:22 +01:00

13 lines
328 B
JavaScript

import Ember from 'ember';
import { colorForState } from 'travis/utils/helpers';
import Polling from 'travis/mixins/polling';
export default Ember.Component.extend({
classNameBindings: ['color'],
pollModels: 'build',
color: function() {
return colorForState(this.get('build.state'));
}.property('build.state')
});