open-nomad/ui/app/components/job-page/abstract.js
2018-02-06 10:53:50 -08:00

27 lines
579 B
JavaScript

import Component from '@ember/component';
import { computed } from '@ember/object';
export default Component.extend({
job: null,
// Provide a value that is bound to a query param
sortProperty: null,
sortDescending: null,
// Provide actions that require routing
onNamespaceChange() {},
gotoTaskGroup() {},
gotoJob() {},
breadcrumbs: computed('job.{name,id}', function() {
const job = this.get('job');
return [
{ label: 'Jobs', args: ['jobs'] },
{
label: job.get('name'),
args: ['jobs.job', job],
},
];
}),
});