Frontend created and rewritten a few times, with some backend fixes #1
|
@ -24,7 +24,6 @@ type User = {
|
||||||
export const useDocumentStore = defineStore({
|
export const useDocumentStore = defineStore({
|
||||||
id: 'documents',
|
id: 'documents',
|
||||||
state: () => ({
|
state: () => ({
|
||||||
root: {} as DirEntry,
|
|
||||||
document: [] as Document[],
|
document: [] as Document[],
|
||||||
search: "" as string,
|
search: "" as string,
|
||||||
selected: new Set<FUID>(),
|
selected: new Set<FUID>(),
|
||||||
|
@ -40,7 +39,10 @@ export const useDocumentStore = defineStore({
|
||||||
isOpenLoginModal: false
|
isOpenLoginModal: false
|
||||||
} as User
|
} as User
|
||||||
}),
|
}),
|
||||||
|
persist: {
|
||||||
|
storage: sessionStorage,
|
||||||
|
paths: ['document'],
|
||||||
|
},
|
||||||
actions: {
|
actions: {
|
||||||
updateRoot(root: DirEntry | null = null) {
|
updateRoot(root: DirEntry | null = null) {
|
||||||
if (!root) {
|
if (!root) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user