From 0b4f8c1e36b42900373f2b86355bf33c36b3298d Mon Sep 17 00:00:00 2001 From: Jannik Stehle Date: Wed, 2 Oct 2024 10:32:56 +0200 Subject: [PATCH] fix: add missing resource tags on 'Shared with me' page --- changelog/unreleased/bugfix-tags-shared-with-me-page | 6 ++++++ .../web-pkg/src/components/SideBar/FileSideBar.vue | 12 ++++++++---- 2 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 changelog/unreleased/bugfix-tags-shared-with-me-page diff --git a/changelog/unreleased/bugfix-tags-shared-with-me-page b/changelog/unreleased/bugfix-tags-shared-with-me-page new file mode 100644 index 00000000000..676d9ba9320 --- /dev/null +++ b/changelog/unreleased/bugfix-tags-shared-with-me-page @@ -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 diff --git a/packages/web-pkg/src/components/SideBar/FileSideBar.vue b/packages/web-pkg/src/components/SideBar/FileSideBar.vue index 1acc16c4d11..60badec2e55 100644 --- a/packages/web-pkg/src/components/SideBar/FileSideBar.vue +++ b/packages/web-pkg/src/components/SideBar/FileSideBar.vue @@ -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)