mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
ui, Adv zone + SG: Fix invocation of create/revoke APIs for ingress/egress security group rules (#6170)
This commit is contained in:
parent
182899d0b5
commit
6d11e2faa9
@ -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,
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user