2017-09-19 14:47:10 +00:00
|
|
|
import Ember from 'ember';
|
|
|
|
import Sortable from 'nomad-ui/mixins/sortable';
|
|
|
|
|
|
|
|
const { Controller, computed } = Ember;
|
|
|
|
|
|
|
|
export default Controller.extend(Sortable, {
|
|
|
|
nodes: computed.alias('model.nodes'),
|
|
|
|
agents: computed.alias('model.agents'),
|
|
|
|
|
|
|
|
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-09-19 14:47:10 +00:00
|
|
|
listToSort: computed.alias('agents'),
|
|
|
|
sortedAgents: computed.alias('listSorted'),
|
|
|
|
});
|