Frontend created and rewritten a few times, with some backend fixes #1
|
@ -61,8 +61,11 @@ import createWebSocket from '@/repositories/WS';
|
||||||
return path === '/' ? '' : path
|
return path === '/' ? '' : path
|
||||||
})
|
})
|
||||||
const filesBasePath = computed(() => `/files${linkBasePath.value}`)
|
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
|
// File rename
|
||||||
const editing = ref<FolderDocument | null>(null)
|
const editing = ref<FolderDocument | null>(null)
|
||||||
const rename = (doc: FolderDocument, newName: string) => {
|
const rename = (doc: FolderDocument, newName: string) => {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user