UI - Hide shrink disk option on XCP-NG/Xenserver (#5829)

* hide shrink disk option on XCP-NG/Xenserver
This commit is contained in:
Hoang Nguyen 2022-01-06 19:11:54 +07:00 committed by GitHub
parent 2774bc156f
commit 3cbde8cd6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@
:autoFocus="customDiskOffering || resource.type === 'ROOT'"/>
</a-form-item>
</div>
<a-form-item :label="$t('label.shrinkok')">
<a-form-item :label="$t('label.shrinkok')" v-if="!['XenServer'].includes(resource.hypervisor)">
<a-checkbox v-decorator="['shrinkok']" />
</a-form-item>
<div :span="24" class="action-button">