github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/ui/app/components/job-subnav.js (about)

     1  import { inject as service } from '@ember/service';
     2  import Component from '@glimmer/component';
     3  
     4  export default class JobSubnav extends Component {
     5    @service can;
     6    @service keyboard;
     7  
     8    get shouldRenderClientsTab() {
     9      const { job } = this.args;
    10      return (
    11        job?.hasClientStatus && !job?.hasChildren && this.can.can('read client')
    12      );
    13    }
    14  }