open-nomad/ui/app/components/job-page/periodic-child.js
2019-04-10 14:54:36 -07:00

22 lines
521 B
JavaScript

import AbstractJobPage from './abstract';
import { computed } from '@ember/object';
export default AbstractJobPage.extend({
breadcrumbs: computed('job.{name,id}', 'job.parent.{name,id}', function() {
const job = this.job;
const parent = this.get('job.parent');
return [
{ label: 'Jobs', args: ['jobs'] },
{
label: parent.get('name'),
args: ['jobs.job', parent],
},
{
label: job.get('trimmedName'),
args: ['jobs.job', job],
},
];
}),
});