John Cowen 35fcf69914 ui: Move dc sorting to the view/template (#8297)
* ui: Move dc sorting to the view/template

* Cleanup unused coordinates service from Node repo

* Fix up integration test to not expect a sorted result
2020-07-13 13:23:29 +00:00

15 lines
332 B
JavaScript

import RepositoryService from 'consul-ui/services/repository';
const modelName = 'node';
export default RepositoryService.extend({
getModelName: function() {
return modelName;
},
findByLeader: function(dc) {
const query = {
dc: dc,
};
return this.store.queryLeader(this.getModelName(), query);
},
});