open-nomad/ui/app/controllers/jobs/job.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

13 lines
314 B
JavaScript

import Ember from 'ember';
const { Controller, computed } = Ember;
export default Controller.extend({
breadcrumbs: computed('model.{name,id}', function() {
return [
{ label: 'Jobs', args: ['jobs'] },
{ label: this.get('model.name'), args: ['jobs.job', this.get('model.id')] },
];
}),
});