2022-01-05 17:45:05 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import Component from '@glimmer/component';
|
2020-07-09 16:37:00 +00:00
|
|
|
|
2022-01-05 17:45:05 +00:00
|
|
|
export default class JobSubnav extends Component {
|
|
|
|
@service can;
|
|
|
|
|
|
|
|
get shouldRenderClientsTab() {
|
|
|
|
const { job } = this.args;
|
|
|
|
return (
|
|
|
|
job?.hasClientStatus && !job?.hasChildren && this.can.can('read client')
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|