From a4f95d730bd84f86abd2599a6065af00786cae96 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Thu, 2 Nov 2023 17:58:36 +0000 Subject: [PATCH] Fix file links --- cista-front/src/components/FileExplorer.vue | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cista-front/src/components/FileExplorer.vue b/cista-front/src/components/FileExplorer.vue index 53b2db1..2b99437 100644 --- a/cista-front/src/components/FileExplorer.vue +++ b/cista-front/src/components/FileExplorer.vue @@ -61,8 +61,11 @@ import createWebSocket from '@/repositories/WS'; return path === '/' ? '' : path }) const filesBasePath = computed(() => `/files${linkBasePath.value}`) - const url_for = (doc: FolderDocument) => doc.type === "folder" ? `#${linkBasePath.value}/${doc.name}` : `${filesBasePath}/${doc.name}` - + const url_for = (doc: FolderDocument) => ( + doc.type === "folder" ? + `#${linkBasePath.value}/${doc.name}` : + `${filesBasePath.value}/${doc.name}` + ) // File rename const editing = ref(null) const rename = (doc: FolderDocument, newName: string) => {