2018-08-17 18:22:26 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { or } from '@ember/object/computed';
|
2020-06-10 13:49:16 +00:00
|
|
|
import classic from 'ember-classic-decorator';
|
2018-08-17 18:22:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
export default class PlacementFailure extends Component {
|
2018-08-17 18:22:26 +00:00
|
|
|
// Either provide a taskGroup or a failedTGAlloc
|
2020-06-10 13:49:16 +00:00
|
|
|
taskGroup = null;
|
|
|
|
failedTGAlloc = null;
|
2018-08-17 18:22:26 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@or('taskGroup.placementFailures', 'failedTGAlloc') placementFailures;
|
|
|
|
}
|