github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/routes/exec/task-group/task.js (about) 1 import { inject as service } from '@ember/service'; 2 import Route from '@ember/routing/route'; 3 4 export default Route.extend({ 5 store: service(), 6 7 model({ task_name }) { 8 const allocationQueryParam = this.paramsFor('exec').allocation; 9 const taskGroupName = this.paramsFor('exec.task-group').task_group_name; 10 11 return { 12 allocationShortId: allocationQueryParam, 13 taskName: task_name, 14 taskGroupName, 15 }; 16 }, 17 18 setupController(controller, { allocationShortId, taskGroupName, taskName }) { 19 this.controllerFor('exec').send('setTaskProperties', { 20 allocationShortId, 21 taskName, 22 taskGroupName, 23 }); 24 25 this._super(...arguments); 26 }, 27 });