Only update time-ago modified field on current folder (optimization, full update was slow for large storages).

This commit is contained in:
Leo Vasanko
2023-11-13 00:52:03 -08:00
parent c321de13fd
commit 06d860c601
3 changed files with 8 additions and 6 deletions

View File

@@ -53,9 +53,6 @@ export const useDocumentStore = defineStore({
}
this.document = docs as Document[]
},
updateModified() {
for (const doc of this.document) doc.modified = formatUnixDate(doc.mtime)
},
login(username: string, privileged: boolean) {
this.user.username = username
this.user.privileged = privileged