github.com/aminovpavel/nomad@v0.11.8/ui/app/components/lifecycle-chart-row.js (about) 1 import Component from '@ember/component'; 2 import { computed } from '@ember/object'; 3 4 export default Component.extend({ 5 tagName: '', 6 7 activeClass: computed('taskState.state', function() { 8 if (this.taskState && this.taskState.state === 'running') { 9 return 'is-active'; 10 } 11 }), 12 13 finishedClass: computed('taskState.finishedAt', function() { 14 if (this.taskState && this.taskState.finishedAt) { 15 return 'is-finished'; 16 } 17 }), 18 });