github.com/hernad/nomad@v1.6.112/ui/app/components/placement-failure.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Component from '@ember/component';
     7  import { or } from '@ember/object/computed';
     8  import classic from 'ember-classic-decorator';
     9  
    10  @classic
    11  export default class PlacementFailure extends Component {
    12    // Either provide a taskGroup or a failedTGAlloc
    13    taskGroup = null;
    14    failedTGAlloc = null;
    15  
    16    @or('taskGroup.placementFailures', 'failedTGAlloc') placementFailures;
    17  }