diff --git a/ui/packages/consul-ui/app/templates/dc/services/instance.hbs b/ui/packages/consul-ui/app/templates/dc/services/instance.hbs
index 884e4eb01f..4200556e46 100644
--- a/ui/packages/consul-ui/app/templates/dc/services/instance.hbs
+++ b/ui/packages/consul-ui/app/templates/dc/services/instance.hbs
@@ -1,36 +1,32 @@
-
+
+ @src={{uri
+ '/${partition}/${nspace}/${dc}/service-instance/${id}/${node}/${name}/${peer}'
+ (hash
+ partition=route.params.partition
+ nspace=route.params.nspace
+ dc=route.params.dc
+ id=route.params.id
+ node=route.params.node
+ name=route.params.name
+ peer=route.params.peer
+ )
+ }}
+ as |loader|
+ >
-
-
+
+
-
- {{#if (eq loader.error.status "404")}}
+
+ {{#if (eq loader.error.status '404')}}
+ {{notification sticky=true}}
+ class='notification-update'
+ @type='warning'
+ as |notice|
+ >
Warning!
@@ -40,14 +36,8 @@ as |route|>
- {{else if (eq loader.error.status "403")}}
-
+ {{else if (eq loader.error.status '403')}}
+
Error!
@@ -58,13 +48,7 @@ as |route|>
{{else}}
-
+
Warning!
@@ -77,64 +61,67 @@ as |route|>
{{/if}}
-
-{{#let
-
- loader.data
-
-as |item|}}
- {{#if item.IsOrigin}}
-
- {{! We only really need meta to get the correct ServiceID }}
- {{! but we may as well use the NodeName and ServiceName }}
- {{! from meta also, but they should be the same as the instance }}
- {{! so if we can ever get ServiceID from elsewhere we could save }}
- {{! a HTTP request/long poll here }}
- {{#if meta.data.ServiceID}}
- {{! if we have a proxy then get the additional instance information }}
- {{! for the proxy itself so if the service is called `backend` }}
- {{! its likely to have a proxy service called `backend-sidecar-proxy` }}
- {{! and this second request get the info for that instance and saves }}
- {{! it into the `proxy` variable }}
-
- {{/if}}
-
- {{/if}}
-
-
-
- - All Services
- -
- Service ({{item.Service.Service}})
-
-
+
+ {{#let loader.data as |item|}}
+ {{#if item.IsOrigin}}
+
+ {{! We only really need meta to get the correct ServiceID }}
+ {{! but we may as well use the NodeName and ServiceName }}
+ {{! from meta also, but they should be the same as the instance }}
+ {{! so if we can ever get ServiceID from elsewhere we could save }}
+ {{! a HTTP request/long poll here }}
+ {{#if meta.data.ServiceID}}
+ {{! if we have a proxy then get the additional instance information }}
+ {{! for the proxy itself so if the service is called `backend` }}
+ {{! its likely to have a proxy service called `backend-sidecar-proxy` }}
+ {{! and this second request get the info for that instance and saves }}
+ {{! it into the `proxy` variable }}
+
+ {{/if}}
+
+ {{/if}}
+
+
+
+ - All Services
+ -
+ Service ({{item.Service.Service}})
+
+
-
+
@@ -146,15 +133,20 @@ as |item|}}
{{/if}}
-
+
- Service Name
- - {{item.Service.Service}}
+ - {{item.Service.Service}}
{{#unless item.Node.Meta.synthetic-node}}
- Node Name
- - {{item.Node.Node}}
+ - {{item.Node.Node}}
{{/unless}}
{{#if item.Service.PeerName}}
@@ -164,36 +156,62 @@ as |item|}}
{{/if}}
-
+
{{#let (or item.Service.Address item.Node.Address) as |address|}}
- {{address}}
+ {{address}}
{{/let}}
-
-
+
+ @model={{assign (hash proxy=proxy meta=meta item=item) route.model}}
+ as |o|
+ >
{{outlet}}
-
-{{/let}}
+
+ {{/let}}
-
+
\ No newline at end of file