Match design order health states imported-services

This commit is contained in:
Michael Klein 2022-10-11 13:13:43 +02:00
parent 02c74807b3
commit 0ad4334597
1 changed files with 3 additions and 5 deletions

View File

@ -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;
}
}