From 56c2ff56e4fc873b8f7383be0532f69fdbbc119c Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Mon, 2 Nov 2020 13:38:43 -0500 Subject: [PATCH] ui: Update to not return metrics for ingress gateways (#9081) --- .../app/components/topology-metrics/card.hbs | 6 ++-- .../app/components/topology-metrics/index.hbs | 6 ++-- .../app/components/topology-metrics/index.js | 5 ++- .../app/routes/dc/services/show/index.js | 36 +++++++++---------- .../app/templates/dc/services/show.hbs | 2 +- 5 files changed, 28 insertions(+), 27 deletions(-) diff --git a/ui/packages/consul-ui/app/components/topology-metrics/card.hbs b/ui/packages/consul-ui/app/components/topology-metrics/card.hbs index c04be94fee..fe551d45bf 100644 --- a/ui/packages/consul-ui/app/components/topology-metrics/card.hbs +++ b/ui/packages/consul-ui/app/components/topology-metrics/card.hbs @@ -45,18 +45,18 @@ {{/if}} - {{#if @hasMetricsProvider }} + {{#if (and @hasMetricsProvider (not-eq @service.Kind 'ingress-gateway'))}} {{#if (eq @type 'upstream')}} {{else}} diff --git a/ui/packages/consul-ui/app/components/topology-metrics/index.hbs b/ui/packages/consul-ui/app/components/topology-metrics/index.hbs index 87ebfe9455..9b16546288 100644 --- a/ui/packages/consul-ui/app/components/topology-metrics/index.hbs +++ b/ui/packages/consul-ui/app/components/topology-metrics/index.hbs @@ -13,7 +13,7 @@ + {{#if (not-eq @service.Service.Kind 'ingress-gateway')}} + {{/if}} {{/if}}