Skip to content

Commit

Permalink
fix: add missing resource tags on 'Shared with me' page
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannik Stehle committed Oct 2, 2024
1 parent b2004f6 commit 500c680
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/bugfix-tags-shared-with-me-page
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bugfix: Missing tags on "Shared with me" page

Missing resource tags on the "Shared with me" page have been added.

https://github.com/owncloud/web/issues/11677
https://github.com/owncloud/web/pull/11703
9 changes: 5 additions & 4 deletions packages/web-pkg/src/components/SideBar/FileSideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,14 @@ export default defineComponent({
// shared resources look different, hence we need to fetch the actual resource here
try {
let fullResource = await clientService.webdav.getFileInfo(props.space, {
const webDavResource = await clientService.webdav.getFileInfo(props.space, {
path: resource.path
})
// make sure props from the share (=resource) are available on the full resource as well
fullResource = { ...fullResource, ...resource }
loadedResource.value = fullResource
// make sure props from the share (=resource) are available on the merged resource
const mergedResource = { ...webDavResource, ...resource }
mergedResource.tags = webDavResource.tags // tags don't exist in Graph API yet, hence take them from webdav
loadedResource.value = mergedResource
} catch (error) {
loadedResource.value = resource
console.error(error)
Expand Down

0 comments on commit 500c680

Please sign in to comment.