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
This commit is contained in:
Kenia 2020-10-09 10:47:25 -04:00 committed by GitHub
parent 44017f819e
commit 3e89a88aec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@
{{/if}}
<ConsulKind @item={{item}} />
<ConsulExternalSource @item={{item}} />
{{#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'))) }}
<span>
{{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}}
</span>