open-consul/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js

12 lines
310 B
JavaScript
Raw Normal View History

import Component from '@glimmer/component';
export default class ConsulServiceSearchBar extends Component {
get healthStates() {
if (this.args.peer) {
return ['passing', 'warning', 'critical', 'unknown', 'empty'];
} else {
return ['passing', 'warning', 'critical', 'empty'];
}
}
}