You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/ui-v2/app/services/repository/node.js

17 lines
433 B

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