From 0ad43345976c64a8d648ed319245692e34b33e79 Mon Sep 17 00:00:00 2001 From: Michael Klein Date: Tue, 11 Oct 2022 13:13:43 +0200 Subject: [PATCH] Match design order health states imported-services --- .../app/components/consul/service/search-bar/index.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js b/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js index 4af97bcb5..0db51f340 100644 --- a/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js +++ b/ui/packages/consul-ui/app/components/consul/service/search-bar/index.js @@ -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; } }