github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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 class TaskRoute extends Route { 5 @service store; 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 super.setupController(...arguments); 26 } 27 }