ui: Fix a problem showing the default part in a non-primary (#11800)
When switching to a non-primary datacenter we should only show the word 'default' in place of the partition menu, this fixes up a bug preventing that from happening due to erroneous if/let nesting
This commit is contained in:
parent
75343efcc9
commit
56525615ec
|
@ -1,8 +1,8 @@
|
||||||
{{#if (can "use partitions")}}
|
{{#if (can "use partitions")}}
|
||||||
{{#if (can "choose partitions" dc=@dc)}}
|
|
||||||
{{#let
|
{{#let
|
||||||
(or @partition 'default')
|
(or @partition 'default')
|
||||||
as |partition|}}
|
as |partition|}}
|
||||||
|
{{#if (can "choose partitions" dc=@dc)}}
|
||||||
<li
|
<li
|
||||||
class="partitions"
|
class="partitions"
|
||||||
data-test-partition-menu
|
data-test-partition-menu
|
||||||
|
@ -58,9 +58,9 @@ as |partition|}}
|
||||||
class="partition"
|
class="partition"
|
||||||
aria-label="Admin Partition"
|
aria-label="Admin Partition"
|
||||||
>
|
>
|
||||||
{{partition}}
|
{{'default'}}
|
||||||
</li>
|
</li>
|
||||||
{{/let}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
{{/let}}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue