Skip to content

Commit

Permalink
Merge pull request #7734 from owncloud/fix-file-name-reactivity
Browse files Browse the repository at this point in the history
Fix file name reactivity in sidebar
  • Loading branch information
kulmann authored Oct 5, 2022
2 parents edf6555 + a211da8 commit 25c22a5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-file-name-reactivity
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: File name reactivity

We've fixed a bug where the file name would not update reactively in the sidebar after changing it.

https://github.com/owncloud/web/pull/7734
https://github.com/owncloud/web/issues/7713
4 changes: 2 additions & 2 deletions packages/web-app-files/src/components/SideBar/FileInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export default {
components: {
PrivateLinkItem
},
inject: ['displayedItem'],
props: {
isSubPanelActive: {
type: Boolean,
Expand All @@ -43,14 +42,15 @@ export default {
},
computed: {
...mapGetters(['capabilities']),
...mapGetters('Files', ['highlightedFile']),
...mapState('Files', ['areFileExtensionsShown']),
privateLinkEnabled() {
return this.capabilities.files.privateLinks && this.file.privateLink
},
file() {
return this.displayedItem.value
return this.highlightedFile
}
}
}
Expand Down

0 comments on commit 25c22a5

Please sign in to comment.