consul/ui-v2/app/controllers/dc/services/index.js

17 lines
359 B
JavaScript

import Controller from '@ember/controller';
import { computed } from '@ember/object';
export default Controller.extend({
queryParams: {
sortBy: 'sort',
search: {
as: 'filter',
},
},
services: computed('items.[]', function() {
return this.items.filter(function(item) {
return item.Kind !== 'connect-proxy';
});
}),
});