ui: show read from ova only for ova format (#5108)

Fixes #5107

Signed-off-by: Abhishek Kumar <abhishek.kumar@shapeblue.com>
This commit is contained in:
Abhishek Kumar 2021-06-15 16:58:38 +05:30 committed by GitHub
parent b6e4329aa3
commit 006d0fe4c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -175,7 +175,8 @@
}
]
}]"
:placeholder="apiParams.format.description">
:placeholder="apiParams.format.description"
@change="val => { selectedFormat = val }">
<a-select-option v-for="opt in format.opts" :key="opt.id">
{{ opt.name || opt.description }}
</a-select-option>
@ -209,7 +210,7 @@
</a-form-item>
</a-row>
<a-form-item :label="$t('label.deployasis')" v-if="hyperVMWShow">
<a-form-item :label="$t('label.deployasis')" v-if="selectedFormat === 'OVA'">
<a-switch
v-decorator="['deployasis', {
initialValue: false,
@ -388,6 +389,7 @@ export default {
hyperKVMShow: false,
hyperXenServerShow: false,
hyperVMWShow: false,
selectedFormat: '',
deployasis: false,
zoneError: '',
zoneErrorMessage: '',