From 4a49fa0a27b65c1c8585c9f3da38dbf00a11b465 Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Fri, 9 Oct 2020 10:47:25 -0400 Subject: [PATCH] ui: Update instances count for ingress and terminating gateways (#8885) * Add associated services count to terminating and ingress gateways in Service List page * Update to not return instances for terminating and ingress gateways --- ui-v2/app/components/consul-service-list/index.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-v2/app/components/consul-service-list/index.hbs b/ui-v2/app/components/consul-service-list/index.hbs index 647992c8a3..a0fb3305cf 100644 --- a/ui-v2/app/components/consul-service-list/index.hbs +++ b/ui-v2/app/components/consul-service-list/index.hbs @@ -46,7 +46,7 @@ {{/if}} - {{#if (not-eq item.InstanceCount 0)}} + {{#if (and (not-eq item.InstanceCount 0) (and (not-eq item.Kind 'terminating-gateway') (not-eq item.Kind 'ingress-gateway'))) }} {{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}}