2023-04-10 15:36:59 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2020-06-01 13:15:59 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { inject as service } from '@ember/service';
|
|
|
|
import { equal, or } from '@ember/object/computed';
|
2020-06-10 13:49:16 +00:00
|
|
|
import { tagName } from '@ember-decorators/component';
|
|
|
|
import classic from 'ember-classic-decorator';
|
2020-06-01 13:15:59 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
@tagName('')
|
|
|
|
export default class AllocationSubnav extends Component {
|
|
|
|
@service router;
|
2022-08-17 16:59:33 +00:00
|
|
|
@service keyboard;
|
2020-06-01 13:15:59 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('router.currentRouteName', 'allocations.allocation.fs')
|
|
|
|
fsIsActive;
|
2020-06-01 13:15:59 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('router.currentRouteName', 'allocations.allocation.fs-root')
|
|
|
|
fsRootIsActive;
|
2020-06-01 13:15:59 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@or('fsIsActive', 'fsRootIsActive') filesLinkActive;
|
|
|
|
}
|