Fix bucket-list display depends on navigation

We need to explicitly tell the UI to not show the bucket-list
when we are displaying imported services. If we make
this depend on the data we will sometimes not show
it due to data-loader caching.
pull/14947/head
Michael Klein 2022-10-11 13:28:02 +02:00
parent e55306e258
commit d6f0fe9f6e
2 changed files with 2 additions and 1 deletions

View File

@ -78,6 +78,7 @@
<Consul::Service::List
@items={{collection.items}}
@partition={{partition}}
@isPeerDetail={{true}}
/>
</collection.Collection>
<collection.Empty>

View File

@ -48,7 +48,7 @@
</span>
{{/if}}
{{! we are displaying imported-services - don't show bucket-list }}
{{#unless item.peer}}
{{#unless @isPeerDetail}}
<Consul::Bucket::List @item={{item}} @nspace={{@nspace}} @partition={{@partition}} />
{{/unless}}
{{#if (eq item.Kind 'terminating-gateway')}}