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';
|
2020-06-10 13:49:16 +00:00
|
|
|
import classic from 'ember-classic-decorator';
|
2018-07-06 23:41:09 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@classic
|
|
|
|
export default class EvaluationsController extends Controller.extend(
|
|
|
|
WithNamespaceResetting,
|
|
|
|
Sortable
|
|
|
|
) {
|
2020-06-11 13:38:33 +00:00
|
|
|
queryParams = [
|
|
|
|
{
|
|
|
|
sortProperty: 'sort',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
sortDescending: 'desc',
|
|
|
|
},
|
|
|
|
];
|
2018-07-06 23:50:41 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
sortProperty = 'modifyIndex';
|
|
|
|
sortDescending = true;
|
2018-07-06 23:50:41 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@alias('model') job;
|
|
|
|
@alias('model.evaluations') evaluations;
|
2018-07-06 23:41:09 +00:00
|
|
|
|
2020-06-10 13:49:16 +00:00
|
|
|
@alias('evaluations') listToSort;
|
|
|
|
@alias('listSorted') sortedEvaluations;
|
|
|
|
}
|