open-nomad/ui/app/controllers/jobs/job/evaluations.js

30 lines
707 B
JavaScript
Raw Normal View History

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