ui: Replace proxy icon with mesh icon (#8804)

This commit is contained in:
John Cowen 2020-10-06 09:37:23 +01:00 committed by GitHub
parent 4c9630ffad
commit 76d3909f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -21,14 +21,14 @@
<ConsulInstanceChecks @type="node" @items={{reject-by 'ServiceID' '' item.Checks}} />
{{/if}}
{{#if item.ProxyInstance}}
<dl class="proxy">
<dl class="mesh">
<dt>
<Tooltip>
Proxy
This service uses a proxy for the Consul service mesh
</Tooltip>
</dt>
<dd data-test-proxy>
connected with proxy
<dd data-test-mesh>
in service mesh with proxy
</dd>
</dl>
{{/if}}

View File

@ -29,6 +29,10 @@ export default Route.extend({
: hash({
...model,
chain: this.data.source(uri => uri`/${nspace}/${dc}/discovery-chain/${params.name}`),
// Whilst `proxies` isn't used anywhere in the show templates
// it provides a relationship of ProxyInstance on the ServiceInstance
// which can respond at a completely different blocking rate to
// the ServiceInstance itself
proxies: this.data.source(
uri => uri`/${nspace}/${dc}/proxies/for-service/${params.name}`
),