From ad024043820b9805509fadc1ba07891c1c15eb7f Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 28 Mar 2022 13:04:11 +0530 Subject: [PATCH] ui, Adv zone + SG: Fix invocation of create/revoke APIs for ingress/egress security group rules --- ui/src/components/view/ResourceView.vue | 1 + ui/src/views/network/IngressEgressRuleConfigure.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/src/components/view/ResourceView.vue b/ui/src/components/view/ResourceView.vue index 7ee1e8c614b7..56801406efab 100644 --- a/ui/src/components/view/ResourceView.vue +++ b/ui/src/components/view/ResourceView.vue @@ -132,6 +132,7 @@ export default { this.activeTab = key const query = Object.assign({}, this.$route.query) query.tab = key + this.$route.query.tab = key history.pushState( {}, null, diff --git a/ui/src/views/network/IngressEgressRuleConfigure.vue b/ui/src/views/network/IngressEgressRuleConfigure.vue index 98345e059051..9f30dd61ecd0 100644 --- a/ui/src/views/network/IngressEgressRuleConfigure.vue +++ b/ui/src/views/network/IngressEgressRuleConfigure.vue @@ -82,7 +82,7 @@
- {{ $t('label.add') }} + {{ $t('label.add') }}
@@ -284,7 +284,7 @@ export default { }) }, fetchData () { - this.tabType = this.$parent.tab === this.$t('label.ingress.rule') ? 'ingress' : 'egress' + this.tabType = this.$route.query.tab === 'ingress.rule' ? 'ingress' : 'egress' this.rules = this.tabType === 'ingress' ? this.resource.ingressrule : this.resource.egressrule }, getCapitalise (val) {