ui: Add namespaces to downstream cards (#8873)

* Add nspace to downstream cards

* Remove portion of conditional
This commit is contained in:
Kenia 2020-10-08 11:38:03 -04:00 committed by GitHub
parent 12e735dbca
commit ef7b1f8a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 1 deletions

View File

@ -17,6 +17,18 @@
{{downstream.Name}}
</p>
<div class="detail">
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
<dl class="nspace">
<dt>
<Tooltip>
Namespace
</Tooltip>
</dt>
<dd>
{{downstream.Namespace}}
</dd>
</dl>
{{/if}}
{{#let (service/health-percentage downstream) as |percentage|}}
{{#if (not-eq percentage.passing 0)}}
<span class="passing">{{percentage.passing}}%</span>
@ -86,7 +98,7 @@
{{upstream.Name}}
</p>
<div class="detail">
{{#if (and nspace (env 'CONSUL_NSPACES_ENABLED'))}}
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
<dl class="nspace">
<dt>
<Tooltip>