mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 18:35:44 +03:00
Update breadcrumbs on job evaluations
This commit is contained in:
@@ -1,11 +1,9 @@
|
||||
import { alias } from '@ember/object/computed';
|
||||
import Controller, { inject as controller } from '@ember/controller';
|
||||
import Controller from '@ember/controller';
|
||||
import WithNamespaceResetting from 'nomad-ui/mixins/with-namespace-resetting';
|
||||
import Sortable from 'nomad-ui/mixins/sortable';
|
||||
|
||||
export default Controller.extend(WithNamespaceResetting, Sortable, {
|
||||
jobController: controller('jobs.job'),
|
||||
|
||||
queryParams: {
|
||||
sortProperty: 'sort',
|
||||
sortDescending: 'desc',
|
||||
@@ -17,8 +15,6 @@ export default Controller.extend(WithNamespaceResetting, Sortable, {
|
||||
job: alias('model'),
|
||||
evaluations: alias('model.evaluations'),
|
||||
|
||||
breadcrumbs: alias('jobController.breadcrumbs'),
|
||||
|
||||
listToSort: alias('evaluations'),
|
||||
sortedEvaluations: alias('listSorted'),
|
||||
});
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
{{#global-header class="page-header"}}
|
||||
{{#each breadcrumbs as |breadcrumb index|}}
|
||||
<li class="{{if (eq (inc index) breadcrumbs.length) "is-active"}}">
|
||||
{{#link-to params=breadcrumb.args}}{{breadcrumb.label}}{{/link-to}}
|
||||
</li>
|
||||
{{/each}}
|
||||
{{/global-header}}
|
||||
{{#gutter-menu class="page-body" onNamespaceChange=(action "gotoJobs")}}
|
||||
{{partial "jobs/job/subnav"}}
|
||||
<section class="section">
|
||||
|
||||
Reference in New Issue
Block a user