UI: fix 'Next' button is stuck if no public ip range (#7198)

This commit is contained in:
Wei Zhou 2023-02-13 14:53:25 +01:00 committed by GitHub
parent f2d1a34271
commit 933970d9da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -2553,6 +2553,7 @@
"message.error.invalid.autoscale.vmgroup.name": "Invalid AutoScale VM group name. It can contain the ASCII letters 'a' through 'z', 'A' through 'Z', the digits '0' through '9' and the hyphen ('-'), must be between 1 and 255 characters long.",
"message.error.ip.range": "Please enter valid range.",
"message.error.ipv4.address": "Please enter a valid IPv4 address.",
"message.error.ipv4.dns1": "Please enter IpV4 DNS 1",
"message.error.ipv4.dns2": "Please enter IpV4 DNS 2",
"message.error.ipv6.address": "Please enter a valid IP v6 address.",
"message.error.ipv6.gateway": "Please enter IpV6 Gateway",

View File

@ -110,14 +110,16 @@
</div>
</div>
<a-modal
v-if="showError"
:visible="showError"
:closable="true"
:maskClosable="false"
:title="`${$t('label.error')}!`"
:footer="null"
@cancel="showError = false"
centered
>
<div v-ctrl-enter="showError = false">
<div v-ctrl-enter="() => showError = false">
<span>{{ $t('message.required.add.least.ip') }}</span>
<div :span="24" class="action-button">
<a-button @click="showError = false">{{ $t('label.cancel') }}</a-button>
@ -260,6 +262,7 @@ export default {
},
handleSubmit () {
if (this.isValidSetup()) {
this.showError = false
if (this.isFixError) {
this.$emit('submitLaunchZone')
return