2018-01-25 22:18:53 +00:00
|
|
|
import AbstractJobPage from './abstract';
|
2018-01-26 00:55:09 +00:00
|
|
|
import { computed } from '@ember/object';
|
2018-01-25 22:18:53 +00:00
|
|
|
|
2018-01-26 00:55:09 +00:00
|
|
|
export default AbstractJobPage.extend({
|
|
|
|
breadcrumbs: computed('job.{name,id}', 'job.parent.{name,id}', function() {
|
|
|
|
const job = this.get('job');
|
|
|
|
const parent = this.get('job.parent');
|
|
|
|
|
|
|
|
return [
|
|
|
|
{ label: 'Jobs', args: ['jobs'] },
|
|
|
|
{
|
|
|
|
label: parent.get('name'),
|
|
|
|
args: ['jobs.job', parent],
|
|
|
|
},
|
|
|
|
{
|
2018-01-27 00:27:04 +00:00
|
|
|
label: job.get('trimmedName'),
|
2018-01-26 00:55:09 +00:00
|
|
|
args: ['jobs.job', job],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}),
|
|
|
|
});
|