github.com/hernad/nomad@v1.6.112/ui/app/components/allocation-subnav.js (about)

     1  /**
     2   * Copyright (c) HashiCorp, Inc.
     3   * SPDX-License-Identifier: MPL-2.0
     4   */
     5  
     6  import Component from '@ember/component';
     7  import { inject as service } from '@ember/service';
     8  import { equal, or } from '@ember/object/computed';
     9  import { tagName } from '@ember-decorators/component';
    10  import classic from 'ember-classic-decorator';
    11  
    12  @classic
    13  @tagName('')
    14  export default class AllocationSubnav extends Component {
    15    @service router;
    16    @service keyboard;
    17  
    18    @equal('router.currentRouteName', 'allocations.allocation.fs')
    19    fsIsActive;
    20  
    21    @equal('router.currentRouteName', 'allocations.allocation.fs-root')
    22    fsRootIsActive;
    23  
    24    @or('fsIsActive', 'fsRootIsActive') filesLinkActive;
    25  }