Create TransparentProxy mode label for service instance page
This commit is contained in:
parent
ba3b84085f
commit
eb2b804211
|
@ -0,0 +1,3 @@
|
||||||
|
<span class="consul-transparent-proxy">
|
||||||
|
{{t "components.consul.transparent-proxy"}}
|
||||||
|
</span>
|
|
@ -2,7 +2,8 @@ span.policy-service-identity,
|
||||||
span.policy-node-identity,
|
span.policy-node-identity,
|
||||||
.leader,
|
.leader,
|
||||||
.consul-auth-method-type,
|
.consul-auth-method-type,
|
||||||
.topology-metrics-source-type {
|
.topology-metrics-source-type,
|
||||||
|
.consul-transparent-proxy {
|
||||||
@extend %pill-200, %frame-gray-600;
|
@extend %pill-200, %frame-gray-600;
|
||||||
}
|
}
|
||||||
span.policy-service-identity::before,
|
span.policy-service-identity::before,
|
||||||
|
|
|
@ -58,6 +58,9 @@ as |route|>
|
||||||
</h1>
|
</h1>
|
||||||
<Consul::ExternalSource @item={{item}} />
|
<Consul::ExternalSource @item={{item}} />
|
||||||
<Consul::Kind @item={{item}} @withInfo={{true}} />
|
<Consul::Kind @item={{item}} @withInfo={{true}} />
|
||||||
|
{{#if proxy.ServiceProxy.Mode}}
|
||||||
|
<Consul::TransparentProxy />
|
||||||
|
{{/if}}
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="nav">
|
<BlockSlot @name="nav">
|
||||||
<dl>
|
<dl>
|
||||||
|
|
|
@ -49,6 +49,7 @@ ${range(env('CONSUL_EXPOSED_COUNT', 3)).map((i) => `
|
||||||
`)}
|
`)}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"Mode": ${fake.random.boolean()},
|
||||||
"DestinationServiceName": "${location.pathname.slice(4)}"
|
"DestinationServiceName": "${location.pathname.slice(4)}"
|
||||||
${ location.pathname.slice(4) === "service-0" ? `
|
${ location.pathname.slice(4) === "service-0" ? `
|
||||||
,
|
,
|
||||||
|
|
Loading…
Reference in New Issue