Skip to content

Commit aee7bb9

Browse files
authored
UI fix message.add.vpn.customer.gateway.failed when catched error (#6493)
* UI fix message.add.vpn.customer.gateway.failed when catched error * fix UI VPC add ACL without required input close ui Without any input, click ok button then close the ui . We need display ui to confirm all required input. * remove commented line
1 parent 739be5d commit aee7bb9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/views/network/CreateVpnCustomerGateway.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ export default {
341341
this.formRef.value.resetFields()
342342
}).catch(error => {
343343
console.error(error)
344-
this.$message.error(this.$t('message.success.add.vpn.customer.gateway'))
344+
this.$message.error(this.$t('message.add.vpn.customer.gateway.failed'))
345345
this.isSubmitted = false
346346
})
347347
}).catch(error => {

ui/src/views/network/VpcTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,6 @@ export default {
822822
handleNetworkAclFormSubmit () {
823823
if (this.fetchLoading) return
824824
this.fetchLoading = true
825-
this.modals.networkAcl = false
826825
827826
this.formRef.value.validate().then(() => {
828827
const values = toRaw(this.form)
@@ -852,6 +851,7 @@ export default {
852851
}).catch(error => {
853852
this.$notifyError(error)
854853
}).finally(() => {
854+
this.modals.networkAcl = false
855855
this.fetchLoading = false
856856
this.fetchAclList()
857857
})

0 commit comments

Comments
 (0)