open-nomad/ui/app/controllers/jobs/job.js

15 lines
352 B
JavaScript
Raw Normal View History

import Controller from '@ember/controller';
import { computed } from '@ember/object';
2017-09-19 14:47:10 +00:00
export default Controller.extend({
breadcrumbs: computed('model.{name,id}', function() {
return [
{ label: 'Jobs', args: ['jobs'] },
2017-10-23 17:27:22 +00:00
{
label: this.get('model.name'),
args: ['jobs.job', this.get('model')],
},
2017-09-19 14:47:10 +00:00
];
}),
});