open-nomad/ui/app/controllers/allocations/allocation.js
Alex Dadgar e5ec915ac3 sync
2017-09-19 10:08:23 -05:00

18 lines
386 B
JavaScript

import Ember from 'ember';
import Sortable from 'nomad-ui/mixins/sortable';
const { Controller, computed } = Ember;
export default Controller.extend(Sortable, {
queryParams: {
sortProperty: 'sort',
sortDescending: 'desc',
},
sortProperty: 'name',
sortDescending: false,
listToSort: computed.alias('model.states'),
sortedStates: computed.alias('listSorted'),
});