18 lines
451 B
JavaScript
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;
|
|
}
|