Don't surface partitions in service search sources (#14078)

This commit is contained in:
Michael Klein 2022-08-10 20:04:30 +02:00 committed by GitHub
parent 576680ddf2
commit 4e740bf824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 21 deletions

View File

@ -139,27 +139,8 @@ as |key value|}}
</span>
</BlockSlot>
<BlockSlot @name="options">
{{#let components.Optgroup components.Option as |Optgroup Option|}}
{{#let
(reject-by 'Partition' @partition @partitions)
as |nonDefaultPartitions|}}
{{#if (gt nonDefaultPartitions.length 0)}}
<Optgroup
@label={{t 'common.brand.consul'}}
>
{{#each @partitions as |partition|}}
<Option class="partition" @value={{partition}} @selected={{includes partition @filter.source.value}}>
{{partition}}
</Option>
{{/each}}
</Optgroup>
{{/if}}
{{/let}}
{{#let components.Option as |Option|}}
{{#if (gt @sources.length 0)}}
<Optgroup
@label={{t 'common.search.integrations'}}
>
{{#each @sources as |source|}}
<Option class={{source}} @value={{source}} @selected={{includes source @filter.source.value}}>
{{t (concat "common.brand." source)}}
@ -168,7 +149,6 @@ as |nonDefaultPartitions|}}
<Option class="consul" @value='consul' @selected={{includes 'consul' @filter.source.value}}>
{{t 'common.brand.consul'}}
</Option>
</Optgroup>
{{/if}}
{{/let}}
</BlockSlot>