mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
UI: user must specify the start of guest vlan range for advanced zone (#7038)
This commit is contained in:
parent
d5f0100541
commit
e8aff6f445
@ -156,7 +156,7 @@ export default {
|
|||||||
|
|
||||||
this.formRef.value.validate().then(() => {
|
this.formRef.value.validate().then(() => {
|
||||||
const values = toRaw(this.form)
|
const values = toRaw(this.form)
|
||||||
if (!this.checkFromTo(values.vlanRangeStart, values.vlanRangeEnd)) {
|
if (!values.vlanRangeStart || (values.vlanRangeEnd && !this.checkFromTo(values.vlanRangeStart, values.vlanRangeEnd))) {
|
||||||
this.validStatus = 'error'
|
this.validStatus = 'error'
|
||||||
this.validMessage = this.$t('message.error.vlan.range')
|
this.validMessage = this.$t('message.error.vlan.range')
|
||||||
return
|
return
|
||||||
@ -185,7 +185,7 @@ export default {
|
|||||||
toVal = value
|
toVal = value
|
||||||
fromVal = this.form[rule.compare]
|
fromVal = this.form[rule.compare]
|
||||||
}
|
}
|
||||||
if (!this.checkFromTo(fromVal, toVal)) {
|
if (fromVal && toVal && !this.checkFromTo(fromVal, toVal)) {
|
||||||
this.validStatus = 'error'
|
this.validStatus = 'error'
|
||||||
this.validMessage = this.$t('message.error.vlan.range')
|
this.validMessage = this.$t('message.error.vlan.range')
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user