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 0d8bf9c62c
commit 4a49fa0a27
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}} {{/if}}
<ConsulKind @item={{item}} /> <ConsulKind @item={{item}} />
<ConsulExternalSource @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> <span>
{{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}} {{format-number item.InstanceCount}} {{pluralize item.InstanceCount 'Instance' without-count=true}}
</span> </span>