github.com/manicqin/nomad@v0.9.5/ui/app/components/task-subnav.js (about) 1 import Component from '@ember/component'; 2 import { inject as service } from '@ember/service'; 3 import { equal, or } from '@ember/object/computed'; 4 5 export default Component.extend({ 6 router: service(), 7 8 tagName: '', 9 10 fsIsActive: equal('router.currentRouteName', 'allocations.allocation.task.fs'), 11 fsRootIsActive: equal('router.currentRouteName', 'allocations.allocation.task.fs-root'), 12 13 filesLinkActive: or('fsIsActive', 'fsRootIsActive'), 14 });