Merge pull request #2928 from gradido/fix-community-tab-navigation

fix(frontend): community tab navigation
This commit is contained in:
Hannes Heine 2023-04-06 16:42:23 +02:00 committed by GitHub
commit eadfc8ac7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,7 +196,9 @@ export default {
methods: { methods: {
updateTabIndex() { updateTabIndex() {
const index = COMMUNITY_TABS.indexOf(this.$route.params.tab) const index = COMMUNITY_TABS.indexOf(this.$route.params.tab)
this.$nextTick(() => {
this.tabIndex = index > -1 ? index : 0 this.tabIndex = index > -1 ? index : 0
})
this.closeAllOpenCollapse() this.closeAllOpenCollapse()
}, },
closeAllOpenCollapse() { closeAllOpenCollapse() {