Don't surface partitions in service search sources (#14078)
This commit is contained in:
parent
576680ddf2
commit
4e740bf824
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue