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) => {