mirror of https://github.com/hashicorp/consul
Match design order health states imported-services
parent
9030c32164
commit
e55306e258
|
@ -2,12 +2,10 @@ import Component from '@glimmer/component';
|
|||
|
||||
export default class ConsulServiceSearchBar extends Component {
|
||||
get healthStates() {
|
||||
let states = ['passing', 'warning', 'critical', 'empty'];
|
||||
|
||||
if (this.args.peer) {
|
||||
states = [...states, 'unknown'];
|
||||
return ['passing', 'warning', 'critical', 'unknown', 'empty'];
|
||||
} else {
|
||||
return ['passing', 'warning', 'critical', 'empty'];
|
||||
}
|
||||
|
||||
return states;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue