ui, Adv zone + SG: Fix invocation of create/revoke APIs for ingress/egress security group rules (#6170)

This commit is contained in:
Pearl Dsilva 2022-03-28 22:23:50 +05:30 committed by GitHub
parent 182899d0b5
commit 6d11e2faa9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -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,

View File

@ -82,7 +82,7 @@
</div>
</template>
<div class="form__item" style="flex: 0">
<a-button :disabled="!('authorizeSecurityGroupInress' in $store.getters.apis) && !('authorizeSecurityGroupEgress' in $store.getters.apis)" type="primary" @click="handleAddRule">{{ $t('label.add') }}</a-button>
<a-button :disabled="!('authorizeSecurityGroupIngress' in $store.getters.apis) && !('authorizeSecurityGroupEgress' in $store.getters.apis)" type="primary" @click="handleAddRule">{{ $t('label.add') }}</a-button>
</div>
</div>
</div>
@ -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) {