github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/ui/app/components/task-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 TaskSubnav extends Component {
    10    @service router;
    11  
    12    @equal('router.currentRouteName', 'allocations.allocation.task.fs')
    13    fsIsActive;
    14  
    15    @equal('router.currentRouteName', 'allocations.allocation.task.fs-root')
    16    fsRootIsActive;
    17  
    18    @or('fsIsActive', 'fsRootIsActive')
    19    filesLinkActive;
    20  }