open-nomad/ui/app/controllers/jobs/job/evaluations.js
2022-01-20 09:46:45 -05:00

30 lines
701 B
JavaScript

import { alias } from '@ember/object/computed';
import Controller from '@ember/controller';
import WithNamespaceResetting from 'nomad-ui/mixins/with-namespace-resetting';
import Sortable from 'nomad-ui/mixins/sortable';
import classic from 'ember-classic-decorator';
@classic
export default class EvaluationsController extends Controller.extend(
WithNamespaceResetting,
Sortable
) {
queryParams = [
{
sortProperty: 'sort',
},
{
sortDescending: 'desc',
},
];
sortProperty = 'modifyIndex';
sortDescending = true;
@alias('model') job;
@alias('model.evaluations') evaluations;
@alias('evaluations') listToSort;
@alias('listSorted') sortedEvaluations;
}