github.com/emate/nomad@v0.8.2-wo-binpacking/ui/app/controllers/jobs/job.js (about) 1 import Controller from '@ember/controller'; 2 import { computed } from '@ember/object'; 3 import { qpBuilder } from 'nomad-ui/utils/classes/query-params'; 4 5 export default Controller.extend({ 6 breadcrumbs: computed('model.{name,id}', function() { 7 return [ 8 { label: 'Jobs', args: ['jobs'] }, 9 { 10 label: this.get('model.name'), 11 args: [ 12 'jobs.job', 13 this.get('model.plainId'), 14 qpBuilder({ 15 jobNamespace: this.get('model.namespace.name') || 'default', 16 }), 17 ], 18 }, 19 ]; 20 }), 21 });