Skip to content

Commit

Permalink
Merge pull request #7787 from owncloud/fix-trash-bin-sidebar
Browse files Browse the repository at this point in the history
Fix sidebar in trash bin
  • Loading branch information
JammingBen authored Oct 13, 2022
2 parents 2ab7e6d + e778968 commit 6640e05
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-trash-bin-sidebar
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Trash bin sidebar

We've fixed the sidebar in the trash bin which was throwing errors and not showing the right content.

https://github.com/owncloud/web/issues/7778
https://github.com/owncloud/web/pull/7787
3 changes: 3 additions & 0 deletions packages/web-app-files/src/components/SideBar/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,9 @@ export default defineComponent({
if (this.hasShareJail && this.space?.driveType === 'share') {
return false
}
if (this.isTrashLocation && !this.highlightedFile?.id) {
return true
}
return !pathSegments.length
},
highlightedFileIsSpace() {
Expand Down
1 change: 1 addition & 0 deletions packages/web-app-files/src/helpers/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ export function buildDeletedResource(resource): Resource {
id,
parentFolderId: resource.fileInfo[DavProperty.FileParent],
indicators: [],
webDavPath: '',
canUpload: () => false,
canDownload: () => false,
canBeDeleted: () => {
Expand Down

0 comments on commit 6640e05

Please sign in to comment.