diff --git a/src/lib/components/SessionHistoryPanel.svelte b/src/lib/components/SessionHistoryPanel.svelte index 61a69f6..e674cac 100644 --- a/src/lib/components/SessionHistoryPanel.svelte +++ b/src/lib/components/SessionHistoryPanel.svelte @@ -15,6 +15,7 @@ let showDeleteConfirm = $state(null); let showExportMenu = $state(null); let isImporting = $state(false); + let showClearAllConfirm = $state(false); const sessions = $derived(sessionsStore.sessions); const isLoading = $derived(sessionsStore.isLoading); @@ -121,6 +122,11 @@ } } + async function handleClearAll(): Promise { + await sessionsStore.clearAllSessions(); + showClearAllConfirm = false; + } + function toggleExportMenu(sessionId: string): void { if (showExportMenu === sessionId) { showExportMenu = null; @@ -186,6 +192,22 @@ {isImporting ? "Importing..." : "Import"} + {/if} + + + + + + +{/if} +