27 lines
548 B
JavaScript
27 lines
548 B
JavaScript
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,
|
|
|
|
isForbidden: false,
|
|
|
|
listToSort: computed.alias('agents'),
|
|
sortedAgents: computed.alias('listSorted'),
|
|
});
|