2017-12-15 21:39:18 +00:00
|
|
|
import { alias } from '@ember/object/computed';
|
2018-03-13 21:58:22 +00:00
|
|
|
import Controller, { inject as controller } from '@ember/controller';
|
2017-10-30 20:39:15 +00:00
|
|
|
import Sortable from 'nomad-ui/mixins/sortable';
|
|
|
|
|
|
|
|
export default Controller.extend(Sortable, {
|
2018-03-13 21:58:22 +00:00
|
|
|
allocationController: controller('allocations.allocation'),
|
|
|
|
|
2017-10-30 20:39:15 +00:00
|
|
|
queryParams: {
|
|
|
|
sortProperty: 'sort',
|
|
|
|
sortDescending: 'desc',
|
|
|
|
},
|
|
|
|
|
|
|
|
sortProperty: 'name',
|
|
|
|
sortDescending: false,
|
|
|
|
|
2018-03-13 21:58:22 +00:00
|
|
|
breadcrumbs: alias('allocationController.breadcrumbs'),
|
|
|
|
|
2017-12-15 21:39:18 +00:00
|
|
|
listToSort: alias('model.states'),
|
|
|
|
sortedStates: alias('listSorted'),
|
2017-10-30 20:39:15 +00:00
|
|
|
});
|