open-nomad/ui/app/components/task-subnav.js
Buck Doyle 595eb480ba
UI: Add allocation directory rendering (#5873)
This lets users navigate the allocation filesystem. It doesn’t
support viewing actual files yet.
2019-07-02 16:42:38 -05:00

15 lines
452 B
JavaScript

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'),
});