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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
451 B
JavaScript
Raw Normal View History

/**
* 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;
}