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:
John Cowen 2021-12-13 15:08:24 +00:00 committed by GitHub
parent b5c0b35ef7
commit 79679da840
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -1,8 +1,8 @@
{{#if (can "use partitions")}}
{{#if (can "choose partitions" dc=@dc)}}
{{#let
(or @partition 'default')
as |partition|}}
{{#if (can "choose partitions" dc=@dc)}}
<li
class="partitions"
data-test-partition-menu
@ -58,9 +58,9 @@ as |partition|}}
class="partition"
aria-label="Admin Partition"
>
{{partition}}
{{'default'}}
</li>
{{/let}}
{{/if}}
{{/let}}
{{/if}}