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>
|
</span>
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
<BlockSlot @name="options">
|
<BlockSlot @name="options">
|
||||||
{{#let components.Optgroup components.Option as |Optgroup Option|}}
|
{{#let components.Option as |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}}
|
|
||||||
|
|
||||||
{{#if (gt @sources.length 0)}}
|
{{#if (gt @sources.length 0)}}
|
||||||
<Optgroup
|
|
||||||
@label={{t 'common.search.integrations'}}
|
|
||||||
>
|
|
||||||
{{#each @sources as |source|}}
|
{{#each @sources as |source|}}
|
||||||
<Option class={{source}} @value={{source}} @selected={{includes source @filter.source.value}}>
|
<Option class={{source}} @value={{source}} @selected={{includes source @filter.source.value}}>
|
||||||
{{t (concat "common.brand." source)}}
|
{{t (concat "common.brand." source)}}
|
||||||
|
@ -168,7 +149,6 @@ as |nonDefaultPartitions|}}
|
||||||
<Option class="consul" @value='consul' @selected={{includes 'consul' @filter.source.value}}>
|
<Option class="consul" @value='consul' @selected={{includes 'consul' @filter.source.value}}>
|
||||||
{{t 'common.brand.consul'}}
|
{{t 'common.brand.consul'}}
|
||||||
</Option>
|
</Option>
|
||||||
</Optgroup>
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{/let}}
|
{{/let}}
|
||||||
</BlockSlot>
|
</BlockSlot>
|
||||||
|
|
Loading…
Reference in New Issue