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

32 lines
638 B
JavaScript
Raw Normal View History

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';
2017-09-19 14:47:10 +00:00
@classic
2021-12-28 16:08:12 +00:00
export default class IndexController extends Controller.extend(
WithNamespaceResetting
) {
@service system;
queryParams = [
{
currentPage: 'page',
},
{
sortProperty: 'sort',
},
{
sortDescending: 'desc',
},
];
2017-09-19 14:47:10 +00:00
currentPage = 1;
2017-09-19 14:47:10 +00:00
@alias('model') job;
2018-07-11 16:34:22 +00:00
sortProperty = 'name';
sortDescending = false;
}