github.com/hspak/nomad@v0.7.2-0.20180309000617-bc4ae22a39a5/ui/app/components/job-page/abstract.js (about)

     1  import Component from '@ember/component';
     2  import { computed } from '@ember/object';
     3  import { inject as service } from '@ember/service';
     4  
     5  export default Component.extend({
     6    system: service(),
     7  
     8    job: null,
     9  
    10    // Provide a value that is bound to a query param
    11    sortProperty: null,
    12    sortDescending: null,
    13  
    14    // Provide actions that require routing
    15    onNamespaceChange() {},
    16    gotoTaskGroup() {},
    17    gotoJob() {},
    18  
    19    breadcrumbs: computed('job.{name,id}', function() {
    20      const job = this.get('job');
    21      return [
    22        { label: 'Jobs', args: ['jobs'] },
    23        {
    24          label: job.get('name'),
    25          args: ['jobs.job', job],
    26        },
    27      ];
    28    }),
    29  });