From 39de16af2b55daa1a8dd443ff219dfed1b7ab8ec Mon Sep 17 00:00:00 2001 From: Kenia <19161242+kaxcode@users.noreply.github.com> Date: Thu, 19 Nov 2020 13:40:05 -0500 Subject: [PATCH] ui: Card component nspace refactor (#9228) * 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 e9f7f8930..56638ca8b 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 8df203eaa..0a0502f93 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