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