From 06d860c60192c3c7be75bf1948fac9739b3510f3 Mon Sep 17 00:00:00 2001 From: Leo Vasanko Date: Mon, 13 Nov 2023 00:52:03 -0800 Subject: [PATCH] Only update time-ago modified field on current folder (optimization, full update was slow for large storages). --- frontend/src/App.vue | 2 -- frontend/src/components/FileExplorer.vue | 9 ++++++++- frontend/src/stores/documents.ts | 3 --- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index a862b9a..104dd5a 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -44,8 +44,6 @@ watchEffect(() => { onMounted(loadSession) onMounted(watchConnect) onUnmounted(watchDisconnect) -// Update human-readable x seconds ago messages from mtimes -setInterval(documentStore.updateModified, 1000) const headerMain = ref(null) let vert = 0 let timer: any = null diff --git a/frontend/src/components/FileExplorer.vue b/frontend/src/components/FileExplorer.vue index c63040d..1e2c70b 100644 --- a/frontend/src/components/FileExplorer.vue +++ b/frontend/src/components/FileExplorer.vue @@ -79,7 +79,7 @@