From 106b63b9e687162ff985a3918ef130188fbe9a94 Mon Sep 17 00:00:00 2001 From: John Cowen Date: Mon, 7 Dec 2020 09:19:22 +0000 Subject: [PATCH] ui: Don't pluralize words when there is only 1 of the item (#9321) --- .../consul-ui/app/components/consul/service/list/index.hbs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/packages/consul-ui/app/components/consul/service/list/index.hbs b/ui/packages/consul-ui/app/components/consul/service/list/index.hbs index 9aaac6180d..4dd2b35840 100644 --- a/ui/packages/consul-ui/app/components/consul/service/list/index.hbs +++ b/ui/packages/consul-ui/app/components/consul/service/list/index.hbs @@ -58,11 +58,11 @@ {{/if}} {{#if (eq item.Kind 'terminating-gateway')}} - {{format-number item.GatewayConfig.AssociatedServiceCount}} linked services + {{format-number item.GatewayConfig.AssociatedServiceCount}} {{pluralize item.GatewayConfig.AssociatedServiceCount 'linked service' without-count=true}} {{else if (eq item.Kind 'ingress-gateway')}} - {{format-number item.GatewayConfig.AssociatedServiceCount}} upstreams + {{format-number item.GatewayConfig.AssociatedServiceCount}} {{pluralize item.GatewayConfig.AssociatedServiceCount 'upstream' without-count=true}} {{/if}} {{#if (or item.ConnectedWithGateway item.ConnectedWithProxy)}}