John Cowen e62275642b
ui: Add more explanatory texts for empty states (#12354)
* ui: Add more explanatory texts for empty states

* Change all template "Read the guide"s

* Add missing htmlSafe

* Remove the stuff I commented out to try and grok the hairy rebase

* Changelog

* More rebased yaml weirdness plus added node:read
2022-04-11 12:49:59 +01:00

24 lines
624 B
Handlebars

<Route
@name={{routeName}}
as |route|>
{{#let
route.model.proxy
route.model.meta
as |item proxy|}}
<div class="tab-section">
{{#if (gt proxy.ServiceProxy.Expose.Paths.length 0)}}
{{t 'routes.dc.services.instance.exposedpaths.intro' htmlSafe=true}}
<Consul::ExposedPath::List
@items={{proxy.ServiceProxy.Expose.Paths}}
@address={{or item.Service.Address item.Node.Address}}
/>
{{else}}
<EmptyState>
<BlockSlot @name="body">
{{t 'routes.dc.services.instance.exposedpaths.empty.body' htmlSafe=true}}
</BlockSlot>
</EmptyState>
{{/if}}
</div>
{{/let}}
</Route>