open-nomad/ui/app/controllers/servers.js

26 lines
536 B
JavaScript
Raw Normal View History

import { alias } from '@ember/object/computed';
import Controller from '@ember/controller';
2017-09-19 14:47:10 +00:00
import Sortable from 'nomad-ui/mixins/sortable';
export default Controller.extend(Sortable, {
nodes: alias('model.nodes'),
agents: alias('model.agents'),
2017-09-19 14:47:10 +00:00
queryParams: {
currentPage: 'page',
sortProperty: 'sort',
sortDescending: 'desc',
},
currentPage: 1,
pageSize: 8,
sortProperty: 'isLeader',
sortDescending: true,
isForbidden: false,
listToSort: alias('agents'),
sortedAgents: alias('listSorted'),
2017-09-19 14:47:10 +00:00
});