open-nomad/ui/app/controllers/jobs/job/evaluations.js
Buck Doyle 577e85b007 Fix query parameters structures
I’d think the codemod would handle this if it’s a requirement
but apparently not, is it a bug?
2020-06-15 09:52:31 -05:00

30 lines
707 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;
}