github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/ui/app/components/job-page/periodic-child.js (about)

     1  import AbstractJobPage from './abstract';
     2  import { computed } from '@ember/object';
     3  
     4  export default AbstractJobPage.extend({
     5    breadcrumbs: computed('job.{name,id}', 'job.parent.{name,id}', function() {
     6      const job = this.job;
     7      const parent = this.get('job.parent');
     8  
     9      return [
    10        { label: 'Jobs', args: ['jobs'] },
    11        {
    12          label: parent.get('name'),
    13          args: ['jobs.job', parent],
    14        },
    15        {
    16          label: job.get('trimmedName'),
    17          args: ['jobs.job', job],
    18        },
    19      ];
    20    }),
    21  });