open-consul/ui/packages/consul-ui/app/templates/dc/nodes/show/index.hbs

10 lines
259 B
Handlebars

<Route
@name={{routeName}}
as |route|>
{{#if (eq route.model.item.Checks.length 0)}}
{{did-insert (route-action 'replaceWith' 'dc.nodes.show.services')}}
{{else}}
{{did-insert (route-action 'replaceWith' 'dc.nodes.show.healthchecks')}}
{{/if}}
</Route>