2018-01-25 17:32:34 +00:00
|
|
|
import Component from '@ember/component';
|
|
|
|
import { computed } from '@ember/object';
|
2018-02-02 17:49:18 +00:00
|
|
|
import { inject as service } from '@ember/service';
|
2018-01-25 17:32:34 +00:00
|
|
|
|
|
|
|
export default Component.extend({
|
2018-02-02 17:49:18 +00:00
|
|
|
system: service(),
|
|
|
|
|
2018-01-25 17:32:34 +00:00
|
|
|
job: null,
|
|
|
|
|
|
|
|
// Provide a value that is bound to a query param
|
|
|
|
sortProperty: null,
|
|
|
|
sortDescending: null,
|
|
|
|
|
|
|
|
// Provide actions that require routing
|
|
|
|
onNamespaceChange() {},
|
|
|
|
gotoTaskGroup() {},
|
2018-01-25 22:18:53 +00:00
|
|
|
gotoJob() {},
|
2018-01-25 17:32:34 +00:00
|
|
|
|
|
|
|
breadcrumbs: computed('job.{name,id}', function() {
|
|
|
|
const job = this.get('job');
|
|
|
|
return [
|
|
|
|
{ label: 'Jobs', args: ['jobs'] },
|
|
|
|
{
|
|
|
|
label: job.get('name'),
|
|
|
|
args: ['jobs.job', job],
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}),
|
|
|
|
});
|