You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/05/04 14:06:07 UTC
[cloudstack] branch 4.15 updated: ui: Prevent reset of port-forward
rules on cancelling a form (#4981)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.15 by this push:
new 4df8d7a ui: Prevent reset of port-forward rules on cancelling a form (#4981)
4df8d7a is described below
commit 4df8d7ade3de33ccc8aa8dd74fb40ce2473f82c1
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Tue May 4 19:34:53 2021 +0530
ui: Prevent reset of port-forward rules on cancelling a form (#4981)
* ui: Prevent reset of port-forward rules on cancelling a form
* add check for undefined value
---
ui/src/views/network/LoadBalancing.vue | 2 +-
ui/src/views/network/PortForwarding.vue | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/ui/src/views/network/LoadBalancing.vue b/ui/src/views/network/LoadBalancing.vue
index 6856251..ddbcf38 100644
--- a/ui/src/views/network/LoadBalancing.vue
+++ b/ui/src/views/network/LoadBalancing.vue
@@ -554,7 +554,7 @@ export default {
vpcid: this.resource.vpcid
}).then(json => {
this.tiers.data = json.listnetworksresponse.network || []
- this.selectedTier = this.tiers.data && this.tiers.data[0].id ? this.tiers.data[0].id : null
+ this.selectedTier = this.tiers.data?.[0]?.id ? this.tiers.data[0].id : null
this.$forceUpdate()
}).catch(error => {
this.$notifyError(error)
diff --git a/ui/src/views/network/PortForwarding.vue b/ui/src/views/network/PortForwarding.vue
index d71672e..29208d9 100644
--- a/ui/src/views/network/PortForwarding.vue
+++ b/ui/src/views/network/PortForwarding.vue
@@ -503,7 +503,6 @@ export default {
this.addVmModalNicLoading = false
this.nics = []
this.resetTagInputs()
- this.resetAllRules()
},
openTagsModal (id) {
this.tagsModalLoading = true