open-nomad/ui/app/components/placement-failure.js

13 lines
373 B
JavaScript
Raw Normal View History

import Component from '@ember/component';
import { or } from '@ember/object/computed';
import classic from 'ember-classic-decorator';
@classic
export default class PlacementFailure extends Component {
// Either provide a taskGroup or a failedTGAlloc
taskGroup = null;
failedTGAlloc = null;
@or('taskGroup.placementFailures', 'failedTGAlloc') placementFailures;
}