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

14 lines
476 B
Handlebars

<Route
@name={{routeName}}
as |route|>
{{#if route.model.tabs.topology}}
{{did-insert (route-action 'replaceWith' 'dc.services.show.topology')}}
{{else if route.model.tabs.upstreams}}
{{did-insert (route-action 'replaceWith' 'dc.services.show.upstreams')}}
{{else if route.model.tabs.services}}
{{did-insert (route-action 'replaceWith' 'dc.services.show.services')}}
{{else}}
{{did-insert (route-action 'replaceWith' 'dc.services.show.instances')}}
{{/if}}
</Route>