open-nomad/ui/app/components/task-subnav.js

15 lines
452 B
JavaScript
Raw Normal View History

import Component from '@ember/component';
import { inject as service } from '@ember/service';
import { equal, or } from '@ember/object/computed';
export default Component.extend({
router: service(),
tagName: '',
fsIsActive: equal('router.currentRouteName', 'allocations.allocation.task.fs'),
fsRootIsActive: equal('router.currentRouteName', 'allocations.allocation.task.fs-root'),
filesLinkActive: or('fsIsActive', 'fsRootIsActive'),
});