mirror of https://github.com/status-im/consul.git
ui: Add namespaces to downstream cards (#8873)
* Add nspace to downstream cards * Remove portion of conditional
This commit is contained in:
parent
12e735dbca
commit
ef7b1f8a4b
|
@ -17,6 +17,18 @@
|
||||||
{{downstream.Name}}
|
{{downstream.Name}}
|
||||||
</p>
|
</p>
|
||||||
<div class="detail">
|
<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|}}
|
{{#let (service/health-percentage downstream) as |percentage|}}
|
||||||
{{#if (not-eq percentage.passing 0)}}
|
{{#if (not-eq percentage.passing 0)}}
|
||||||
<span class="passing">{{percentage.passing}}%</span>
|
<span class="passing">{{percentage.passing}}%</span>
|
||||||
|
@ -86,7 +98,7 @@
|
||||||
{{upstream.Name}}
|
{{upstream.Name}}
|
||||||
</p>
|
</p>
|
||||||
<div class="detail">
|
<div class="detail">
|
||||||
{{#if (and nspace (env 'CONSUL_NSPACES_ENABLED'))}}
|
{{#if (env 'CONSUL_NSPACES_ENABLED')}}
|
||||||
<dl class="nspace">
|
<dl class="nspace">
|
||||||
<dt>
|
<dt>
|
||||||
<Tooltip>
|
<Tooltip>
|
||||||
|
|
Loading…
Reference in New Issue