From 0de23419d65c43a53c590842b233404a284b4420 Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Fri, 20 Nov 2020 11:41:57 -0500 Subject: [PATCH] ui: Card component nspace refactor (#9228) (#9248) * Refactoring conditional for showing nspaces * Styling empty state for Stats component --- ui/packages/consul-ui/app/components/topology-metrics/card.hbs | 2 +- .../consul-ui/app/components/topology-metrics/stats/index.scss | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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 81c6d561d0..cb34d3ff77 100644 --- a/ui/packages/consul-ui/app/components/topology-metrics/card.hbs +++ b/ui/packages/consul-ui/app/components/topology-metrics/card.hbs @@ -7,7 +7,7 @@ {{@item.Name}}

- {{#if (and (and @nspace (env 'CONSUL_NSPACES_ENABLED')) @type)}} + {{#if (and (env 'CONSUL_NSPACES_ENABLED') (not-eq @item.Namespace @service.Namespace))}}
diff --git a/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss b/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss index 8df203eaa4..0a0502f93d 100644 --- a/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss +++ b/ui/packages/consul-ui/app/components/topology-metrics/stats/index.scss @@ -16,4 +16,7 @@ dd { color: $gray-400 !important; } + span { + padding-bottom: 12px; + } } \ No newline at end of file