From 527ec1e57d0dbc2f90bff6fe0a30728bdb21c77c Mon Sep 17 00:00:00 2001 From: Jan Ackermann Date: Thu, 19 Oct 2023 10:31:01 +0200 Subject: [PATCH] make use of useFolerLink in ResourceTable --- .../components/FilesList/ResourceTable.vue | 123 +++++------------- .../filesList/useResourceRouteResolver.ts | 7 +- .../composables/folderLink/useFolderLink.ts | 69 ++++++++-- 3 files changed, 97 insertions(+), 102 deletions(-) diff --git a/packages/web-pkg/src/components/FilesList/ResourceTable.vue b/packages/web-pkg/src/components/FilesList/ResourceTable.vue index 473b1ef3855..1714d298cca 100644 --- a/packages/web-pkg/src/components/FilesList/ResourceTable.vue +++ b/packages/web-pkg/src/components/FilesList/ResourceTable.vue @@ -66,10 +66,10 @@ :is-icon-displayed="!$slots['image']" :is-extension-displayed="areFileExtensionsShown" :is-resource-clickable="isResourceClickable(item.id)" - :folder-link="folderLink(item)" - :parent-folder-link="parentFolderLink(item)" + :folder-link="getFolderLink(item)" + :parent-folder-link="getParentFolderLink(item)" :parent-folder-link-icon-additional-attributes=" - parentFolderLinkIconAdditionalAttributes(item) + getParentFolderLinkIconAdditionalAttributes(item) " :class="{ 'resource-table-resource-cut': isResourceCut(item) }" @click="emitFileClick(item)" @@ -211,17 +211,9 @@