ui: fix not find tab name due to language other than English (#4920)

Fixes #4919
This commit is contained in:
Hoang Nguyen 2021-04-15 14:31:11 +07:00 committed by GitHub
parent 50da578fde
commit 8fec222af0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -261,7 +261,7 @@ export default {
},
methods: {
fetchData () {
this.tabType = this.$parent.tab === 'Ingress Rule' ? 'ingress' : 'egress'
this.tabType = this.$parent.tab === this.$t('label.ingress.rule') ? 'ingress' : 'egress'
this.rules = this.tabType === 'ingress' ? this.resource.ingressrule : this.resource.egressrule
},
handleAddRule () {