21 lines
540 B
JavaScript
21 lines
540 B
JavaScript
import { alias } from '@ember/object/computed';
|
|
import Controller, { inject as controller } from '@ember/controller';
|
|
import Sortable from 'nomad-ui/mixins/sortable';
|
|
|
|
export default Controller.extend(Sortable, {
|
|
allocationController: controller('allocations.allocation'),
|
|
|
|
queryParams: {
|
|
sortProperty: 'sort',
|
|
sortDescending: 'desc',
|
|
},
|
|
|
|
sortProperty: 'name',
|
|
sortDescending: false,
|
|
|
|
breadcrumbs: alias('allocationController.breadcrumbs'),
|
|
|
|
listToSort: alias('model.states'),
|
|
sortedStates: alias('listSorted'),
|
|
});
|