You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by nv...@apache.org on 2022/05/12 10:17:34 UTC
[cloudstack] branch main updated: UI: Fix hypervisor list after zone validation when registering a template (#6382)
This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 8aca2b67f0 UI: Fix hypervisor list after zone validation when registering a template (#6382)
8aca2b67f0 is described below
commit 8aca2b67f0557c561ec7a908a6a0e645dc2d4f83
Author: Nicolas Vazquez <ni...@gmail.com>
AuthorDate: Thu May 12 07:17:28 2022 -0300
UI: Fix hypervisor list after zone validation when registering a template (#6382)
---
ui/src/views/image/RegisterOrUploadTemplate.vue | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ui/src/views/image/RegisterOrUploadTemplate.vue b/ui/src/views/image/RegisterOrUploadTemplate.vue
index 709ae4a587..b0a667555b 100644
--- a/ui/src/views/image/RegisterOrUploadTemplate.vue
+++ b/ui/src/views/image/RegisterOrUploadTemplate.vue
@@ -722,10 +722,10 @@ export default {
}
this.hyperVisor.opts = []
- if (this.zoneError !== '') {
+ const allZoneExists = value.filter(zone => zone === this.$t('label.all.zone'))
+ if (allZoneExists.length > 0 && value.length > 1) {
return
}
-
const arrSelectReset = ['hypervisor', 'format', 'rootDiskControllerType', 'nicAdapterType', 'keyboardType']
this.resetSelect(arrSelectReset)
@@ -876,10 +876,8 @@ export default {
return Promise.resolve()
}
const allZoneExists = value.filter(zone => zone === this.$t('label.all.zone'))
- this.zoneError = ''
if (allZoneExists.length > 0 && value.length > 1) {
- this.zoneError = 'error'
return Promise.reject(this.$t('message.error.zone.combined'))
}