Skip to content

Commit

Permalink
Merge pull request #10564 from nextcloud/backport/10558/stable26
Browse files Browse the repository at this point in the history
[stable26] fix(RightSidebar) update active tab on mount and conversation change
  • Loading branch information
Antreesy committed Sep 25, 2023
2 parents 1b067ae + e4a58c4 commit 120fc3a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
9 changes: 9 additions & 0 deletions src/components/RightSidebar/RightSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,15 @@ export default {
}
},
isOneToOne: {
immediate: true,
handler(value) {
if (value) {
this.activeTab = 'shared-items'
}
},
},
isInCall(newValue) {
// Waiting for chat tab to mount / destroy
this.$nextTick(() => {
Expand Down
20 changes: 16 additions & 4 deletions src/components/RightSidebar/SharedItems/SharedItemsTab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,22 @@ export default {
},
watch: {
active(newValue) {
if (newValue) {
this.getSharedItemsOverview()
}
active: {
immediate: true,
handler(newValue) {
if (newValue && this.token) {
this.getSharedItemsOverview()
}
},
},
token: {
immediate: true,
handler(newValue) {
if (newValue && this.active) {
this.getSharedItemsOverview()
}
},
},
},
Expand Down

0 comments on commit 120fc3a

Please sign in to comment.