mirror of
https://github.com/kemko/nomad.git
synced 2026-01-08 11:25:41 +03:00
16 lines
536 B
JavaScript
16 lines
536 B
JavaScript
import Controller, { inject as controller } from '@ember/controller';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default Controller.extend({
|
|
allocationController: controller('allocations.allocation'),
|
|
|
|
breadcrumbs: computed('allocationController.breadcrumbs.[]', 'model.name', function() {
|
|
return this.get('allocationController.breadcrumbs').concat([
|
|
{
|
|
label: this.get('model.name'),
|
|
args: ['allocations.allocation.task', this.get('model.allocation'), this.get('model')],
|
|
},
|
|
]);
|
|
}),
|
|
});
|