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

32 lines
638 B
JavaScript

import Controller from '@ember/controller';
import { alias } from '@ember/object/computed';
import { inject as service } from '@ember/service';
import WithNamespaceResetting from 'nomad-ui/mixins/with-namespace-resetting';
import classic from 'ember-classic-decorator';
@classic
export default class IndexController extends Controller.extend(
WithNamespaceResetting
) {
@service system;
queryParams = [
{
currentPage: 'page',
},
{
sortProperty: 'sort',
},
{
sortDescending: 'desc',
},
];
currentPage = 1;
@alias('model') job;
sortProperty = 'name';
sortDescending = false;
}