From fb6003de84765e8d21ce136183446fe57bb66ce1 Mon Sep 17 00:00:00 2001 From: ddang Date: Wed, 29 Nov 2023 19:39:37 -0800 Subject: [PATCH] Comments resolved --- src/lib/components/layout/Sidebar.svelte | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/lib/components/layout/Sidebar.svelte b/src/lib/components/layout/Sidebar.svelte index 50d2f17d..656d3f45 100644 --- a/src/lib/components/layout/Sidebar.svelte +++ b/src/lib/components/layout/Sidebar.svelte @@ -24,7 +24,7 @@ let showDropdown = false; - let showWarningHistory = false; + let showDeleteHistoryConfirm = false; onMount(async () => { if (window.innerWidth > 1280) { @@ -449,7 +449,7 @@
Export
- {#if showWarningHistory} + {#if showDeleteHistoryConfirm}
- Are you sure? + Are you sure?
@@ -474,7 +474,7 @@ class="hover:text-white transition" on:click={() => { deleteChatHistory(); - showWarningHistory = false; + showDeleteHistoryConfirm = false; }} > { - showWarningHistory = false; + showDeleteHistoryConfirm = false; }} > { - showWarningHistory = true; + showDeleteHistoryConfirm = true; }}>