github.com/ferranbt/nomad@v0.9.3-0.20190607002617-85c449b7667c/ui/app/components/placement-failure.js (about)

     1  import Component from '@ember/component';
     2  import { or } from '@ember/object/computed';
     3  
     4  export default Component.extend({
     5    // Either provide a taskGroup or a failedTGAlloc
     6    taskGroup: null,
     7    failedTGAlloc: null,
     8  
     9    placementFailures: or('taskGroup.placementFailures', 'failedTGAlloc'),
    10  });