From dd3723851076b7b4ed194b58f097fad312102667 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 13 Nov 2023 02:19:13 -0800 Subject: [PATCH] Update modified immediately when entering a folder --- frontend/src/components/FileExplorer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/FileExplorer.vue b/frontend/src/components/FileExplorer.vue index 1e2c70b..3a0cdb0 100644 --- a/frontend/src/components/FileExplorer.vue +++ b/frontend/src/components/FileExplorer.vue @@ -234,7 +234,7 @@ let modifiedTimer: any = null const updateModified = () => { for (const doc of props.documents) doc.modified = formatUnixDate(doc.mtime) } -onMounted(() => { modifiedTimer = setInterval(updateModified, 1000) }) +onMounted(() => { updateModified(); modifiedTimer = setInterval(updateModified, 1000) }) onUnmounted(() => { clearInterval(modifiedTimer) }) const mkdir = (doc: Document, name: string) => { const control = connect(controlUrl, {