open-nomad/ui/app/components/placement-failure.js
2023-04-10 15:36:59 +00:00

18 lines
451 B
JavaScript

/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: MPL-2.0
*/
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;
}