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

     1  import Component from '@ember/component';
     2  import { inject as service } from '@ember/service';
     3  import { equal, or } from '@ember/object/computed';
     4  import { tagName } from '@ember-decorators/component';
     5  import classic from 'ember-classic-decorator';
     6  
     7  @classic
     8  @tagName('')
     9  export default class AllocationSubnav extends Component {
    10    @service router;
    11    @service keyboard;
    12  
    13    @equal('router.currentRouteName', 'allocations.allocation.fs')
    14    fsIsActive;
    15  
    16    @equal('router.currentRouteName', 'allocations.allocation.fs-root')
    17    fsRootIsActive;
    18  
    19    @or('fsIsActive', 'fsRootIsActive') filesLinkActive;
    20  }