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:
John Cowen 2021-11-04 12:14:43 +00:00 committed by GitHub
parent 599e8a05d3
commit e5e65b71ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 58 additions and 56 deletions

View File

@ -1,3 +1,4 @@
{{#if (can "use partitions")}}
{{#if (can "choose partitions" dc=@dc)}}
<li
class="partitions"
@ -57,4 +58,5 @@
{{@partition}}
</li>
{{/if}}
{{/if}}