mirror of https://github.com/apache/cloudstack.git
UI: Fix hypervisor list after zone validation when registering a template (#6382)
This commit is contained in:
parent
c0176b24ab
commit
8aca2b67f0
|
|
@ -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'))
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue