ui: Only show partition / partition selector if enabled (#11484)
I missed that partitions should never display if you can't use them, not just if you can't choose them.
This commit is contained in:
parent
599e8a05d3
commit
e5e65b71ad
|
@ -1,4 +1,5 @@
|
|||
{{#if (can "choose partitions" dc=@dc)}}
|
||||
{{#if (can "use partitions")}}
|
||||
{{#if (can "choose partitions" dc=@dc)}}
|
||||
<li
|
||||
class="partitions"
|
||||
data-test-partition-menu
|
||||
|
@ -49,12 +50,13 @@
|
|||
</BlockSlot>
|
||||
</PopoverMenu>
|
||||
</li>
|
||||
{{else}}
|
||||
{{else}}
|
||||
<li
|
||||
class="partition"
|
||||
aria-label="Admin Partition"
|
||||
>
|
||||
{{@partition}}
|
||||
</li>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
|
|
Loading…
Reference in New Issue