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;
|
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;
|
|
|
|
}
|