github.com/manicqin/nomad@v0.9.5/ui/app/components/job-page/parts/task-groups.js (about) 1 import Component from '@ember/component'; 2 import { computed } from '@ember/object'; 3 import { alias } from '@ember/object/computed'; 4 import Sortable from 'nomad-ui/mixins/sortable'; 5 6 export default Component.extend(Sortable, { 7 job: null, 8 9 classNames: ['boxed-section'], 10 11 // Provide a value that is bound to a query param 12 sortProperty: null, 13 sortDescending: null, 14 15 // Provide an action with access to the router 16 gotoTaskGroup() {}, 17 18 taskGroups: computed('job.taskGroups.[]', function() { 19 return this.get('job.taskGroups') || []; 20 }), 21 22 listToSort: alias('taskGroups'), 23 sortedTaskGroups: alias('listSorted'), 24 });