open-nomad/ui/app/components/placement-failure.js
2018-08-20 16:44:37 -07:00

11 lines
293 B
JavaScript

import Component from '@ember/component';
import { or } from '@ember/object/computed';
export default Component.extend({
// Either provide a taskGroup or a failedTGAlloc
taskGroup: null,
failedTGAlloc: null,
placementFailures: or('taskGroup.placementFailures', 'failedTGAlloc'),
});