Skip to content

Commit

Permalink
Merge pull request #11703 from owncloud/fix/tags-shared-with-me-page
Browse files Browse the repository at this point in the history
fix: add missing resource tags on 'Shared with me' page
  • Loading branch information
JammingBen authored Oct 2, 2024
2 parents 43ca929 + 0b4f8c1 commit e706f6c
Show file tree
Hide file tree
Showing 2 changed files with 14 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
12 changes: 8 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,17 @@ 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,
tags: webDavResource.tags // tags are always [] in Graph API, hence take them from webdav
}
loadedResource.value = mergedResource
} catch (error) {
loadedResource.value = resource
console.error(error)
Expand Down

0 comments on commit e706f6c

Please sign in to comment.