From f39a523ec001ed4312882f4cfcb3643b6af03441 Mon Sep 17 00:00:00 2001 From: silentoplayz <50341825+silentoplayz@users.noreply.github.com> Date: Wed, 6 Nov 2024 00:58:41 -0500 Subject: [PATCH] Update ArchivedChatsModal.svelte feat: Unarchive All Archived Chats button --- .../layout/Sidebar/ArchivedChatsModal.svelte | 422 ++++++++++-------- 1 file changed, 227 insertions(+), 195 deletions(-) diff --git a/src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte b/src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte index b2ae11058..ec1e4b185 100644 --- a/src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte +++ b/src/lib/components/layout/Sidebar/ArchivedChatsModal.svelte @@ -1,220 +1,252 @@ -
-
-
{$i18n.t('Archived Chats')}
- -
+
+
+
{$i18n.t('Archived Chats')}
+ +
-
-
-
-
- - - -
- -
-
-
-
- {#if chats.length > 0} -
-
-
- - - - - - - - - {#each chats.filter((c) => searchValue === '' || c.title - .toLowerCase() - .includes(searchValue.toLowerCase())) as chat, idx} - - +
+
+
+
+ + + +
+ +
+
+
+
+ {#if chats.length > 0} +
+
+
+
{$i18n.t('Name')} -
- -
- {chat.title} -
-
-
+ + + + + + + + {#each chats.filter((c) => searchValue === '' || c.title + .toLowerCase() + .includes(searchValue.toLowerCase())) as chat, idx} + + - + - - - {/each} - -
{$i18n.t('Name')} +
+ +
+ {chat.title} +
+
+
-
- - - +
+
+ + + - - - -
-
-
-
+ + + +
+ + + {/each} + + +
+
-
- -
-
- {:else} -
- {$i18n.t('You have no archived conversations.')} -
- {/if} -
- - + {$i18n.t('Unarchive All Archived Chats')} + + + { + unarchiveAllHandler(); + }} + /> + + + + + {:else} +
+ {$i18n.t('You have no archived conversations.')} +
+ {/if} + + +