a9004faa11
This adds details about task lifecycles to allocations, task groups, and tasks. It includes a live-updating timeline-like chart on allocations.
19 lines
456 B
JavaScript
19 lines
456 B
JavaScript
import Component from '@ember/component';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Component.extend({
|
|
tagName: '',
|
|
|
|
activeClass: computed('taskState.state', function() {
|
|
if (this.taskState && this.taskState.state === 'running') {
|
|
return 'is-active';
|
|
}
|
|
}),
|
|
|
|
finishedClass: computed('taskState.finishedAt', function() {
|
|
if (this.taskState && this.taskState.finishedAt) {
|
|
return 'is-finished';
|
|
}
|
|
}),
|
|
});
|