From 1f488a00726d4d47145061fc27f722f4cac1fe38 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Fri, 4 Oct 2024 19:38:24 -0700 Subject: [PATCH] enh: sync confirm --- .../workspace/Knowledge/Collection.svelte | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/lib/components/workspace/Knowledge/Collection.svelte b/src/lib/components/workspace/Knowledge/Collection.svelte index 2672d35b7..61e2b84d6 100644 --- a/src/lib/components/workspace/Knowledge/Collection.svelte +++ b/src/lib/components/workspace/Knowledge/Collection.svelte @@ -31,8 +31,8 @@ import { processFile } from '$lib/apis/retrieval'; import AddContentMenu from './Collection/AddContentMenu.svelte'; import AddTextContentModal from './Collection/AddTextContentModal.svelte'; - import Check from '$lib/components/icons/Check.svelte'; - import FloppyDisk from '$lib/components/icons/FloppyDisk.svelte'; + + import SyncConfirmDialog from '../../common/ConfirmDialog.svelte'; let largeScreen = true; @@ -51,6 +51,8 @@ let query = ''; let showAddTextContentModal = false; + let showSyncConfirmModal = false; + let inputFiles = null; let filteredItems = []; @@ -475,6 +477,16 @@ {/if} + { + syncDirectoryHandler(); + }} +/> + { @@ -609,7 +621,7 @@ } }} on:sync={(e) => { - syncDirectoryHandler(); + showSyncConfirmModal = true; }} />