mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
fix(frontend): community tab navigation
This commit is contained in:
parent
fa036741c1
commit
f0cfd1b309
@ -96,8 +96,8 @@ export default {
|
|||||||
openCreations: [],
|
openCreations: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
async mounted() {
|
||||||
this.updateTabIndex()
|
await this.updateTabIndex()
|
||||||
},
|
},
|
||||||
apollo: {
|
apollo: {
|
||||||
OpenCreations: {
|
OpenCreations: {
|
||||||
@ -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.tabIndex = index > -1 ? index : 0
|
this.$nextTick(() => {
|
||||||
|
this.tabIndex = index > -1 ? index : 0
|
||||||
|
})
|
||||||
this.closeAllOpenCollapse()
|
this.closeAllOpenCollapse()
|
||||||
},
|
},
|
||||||
closeAllOpenCollapse() {
|
closeAllOpenCollapse() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user