github.com/emate/nomad@v0.8.2-wo-binpacking/ui/app/controllers/allocations/allocation.js (about)

     1  import Controller from '@ember/controller';
     2  import { computed } from '@ember/object';
     3  import { qpBuilder } from 'nomad-ui/utils/classes/query-params';
     4  
     5  export default Controller.extend({
     6    breadcrumbs: computed('model.job', function() {
     7      return [
     8        { label: 'Jobs', args: ['jobs'] },
     9        {
    10          label: this.get('model.job.name'),
    11          args: [
    12            'jobs.job',
    13            this.get('model.job.plainId'),
    14            qpBuilder({
    15              jobNamespace: this.get('model.job.namespace.name') || 'default',
    16            }),
    17          ],
    18        },
    19        {
    20          label: this.get('model.taskGroupName'),
    21          args: [
    22            'jobs.job.task-group',
    23            this.get('model.job'),
    24            this.get('model.taskGroupName'),
    25            qpBuilder({
    26              jobNamespace: this.get('model.namespace.name') || 'default',
    27            }),
    28          ],
    29        },
    30        {
    31          label: this.get('model.shortId'),
    32          args: ['allocations.allocation', this.get('model')],
    33        },
    34      ];
    35    }),
    36  });