github.com/hernad/nomad@v1.6.112/ui/app/components/job-status/panel.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  // @ts-check
     7  import Component from '@glimmer/component';
     8  import { inject as service } from '@ember/service';
     9  
    10  export default class JobStatusPanelComponent extends Component {
    11    @service store;
    12  
    13    get isActivelyDeploying() {
    14      return this.args.job.get('latestDeployment.isRunning');
    15    }
    16  
    17    get nodes() {
    18      if (!this.args.job.get('hasClientStatus')) {
    19        return [];
    20      }
    21      return this.store.peekAll('node');
    22    }
    23  }