Browse Source

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

pull/8828/head
John Cowen 4 years ago committed by GitHub
parent
commit
76d3909f30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      ui-v2/app/components/consul-service-instance-list/index.hbs
  2. 4
      ui-v2/app/routes/dc/services/show.js

8
ui-v2/app/components/consul-service-instance-list/index.hbs

@ -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}}

4
ui-v2/app/routes/dc/services/show.js

@ -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}`
),

Loading…
Cancel
Save