2017-12-15 21:39:18 +00:00
|
|
|
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, {
|
2017-12-15 21:39:18 +00:00
|
|
|
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,
|
|
|
|
|
2017-10-24 23:07:43 +00:00
|
|
|
isForbidden: false,
|
|
|
|
|
2017-12-15 21:39:18 +00:00
|
|
|
listToSort: alias('agents'),
|
|
|
|
sortedAgents: alias('listSorted'),
|
2017-09-19 14:47:10 +00:00
|
|
|
});
|