github.com/hernad/nomad@v1.6.112/ui/app/controllers/jobs/job/evaluations.js (about) 1 /** 2 * Copyright (c) HashiCorp, Inc. 3 * SPDX-License-Identifier: MPL-2.0 4 */ 5 6 import { alias } from '@ember/object/computed'; 7 import Controller from '@ember/controller'; 8 import WithNamespaceResetting from 'nomad-ui/mixins/with-namespace-resetting'; 9 import Sortable from 'nomad-ui/mixins/sortable'; 10 import classic from 'ember-classic-decorator'; 11 12 @classic 13 export default class EvaluationsController extends Controller.extend( 14 WithNamespaceResetting, 15 Sortable 16 ) { 17 queryParams = [ 18 { 19 sortProperty: 'sort', 20 }, 21 { 22 sortDescending: 'desc', 23 }, 24 ]; 25 26 sortProperty = 'modifyIndex'; 27 sortDescending = true; 28 29 @alias('model') job; 30 @alias('model.evaluations') evaluations; 31 32 @alias('evaluations') listToSort; 33 @alias('listSorted') sortedEvaluations; 34 }