2019-07-02 21:42:38 +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';
|
2019-07-02 21:42:38 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
@tagName('')
|
|
|
|
export default class TaskSubnav extends Component {
|
|
|
|
@service router;
|
2022-08-17 16:59:33 +00:00
|
|
|
@service keyboard;
|
2019-07-02 21:42:38 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('router.currentRouteName', 'allocations.allocation.task.fs')
|
|
|
|
fsIsActive;
|
2019-07-02 21:42:38 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@equal('router.currentRouteName', 'allocations.allocation.task.fs-root')
|
|
|
|
fsRootIsActive;
|
2019-07-02 21:42:38 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@or('fsIsActive', 'fsRootIsActive')
|
|
|
|
filesLinkActive;
|
|
|
|
}
|