Match design order health states imported-services
This commit is contained in:
parent
02c74807b3
commit
0ad4334597
|
@ -2,12 +2,10 @@ import Component from '@glimmer/component';
|
||||||
|
|
||||||
export default class ConsulServiceSearchBar extends Component {
|
export default class ConsulServiceSearchBar extends Component {
|
||||||
get healthStates() {
|
get healthStates() {
|
||||||
let states = ['passing', 'warning', 'critical', 'empty'];
|
|
||||||
|
|
||||||
if (this.args.peer) {
|
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