mirror of https://github.com/status-im/consul.git
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:
parent
0d8bf9c62c
commit
4a49fa0a27
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue