From e65aadbcfdccb02c902dc982303ec0e8b6d39fec Mon Sep 17 00:00:00 2001
From: kamtschatka <simon.schatka@gmx.at>
Date: Sat, 13 Jul 2024 14:15:05 +0200
Subject: fix: Delete confirmation doesn't disappear after bulk deletion of
 links using WebUI. Fixes #290 (#292)

closing delete dialog after deleting the bookmarks
---
 apps/web/components/dashboard/BulkBookmarksAction.tsx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

(limited to 'apps/web/components/dashboard/BulkBookmarksAction.tsx')

diff --git a/apps/web/components/dashboard/BulkBookmarksAction.tsx b/apps/web/components/dashboard/BulkBookmarksAction.tsx
index b78071ee..bed1bda8 100644
--- a/apps/web/components/dashboard/BulkBookmarksAction.tsx
+++ b/apps/web/components/dashboard/BulkBookmarksAction.tsx
@@ -83,6 +83,7 @@ export default function BulkBookmarksAction() {
     toast({
       description: `${selectedBookmarks.length} bookmarks have been deleted!`,
     });
+    setIsDeleteDialogOpen(false);
   };
 
   const alreadyFavourited =
@@ -102,7 +103,7 @@ export default function BulkBookmarksAction() {
       hidden: !isBulkEditEnabled,
     },
     {
-      name: alreadyArchived ? "Un-arhcive" : "Archive",
+      name: alreadyArchived ? "Un-archive" : "Archive",
       icon: <ArchivedActionIcon size={18} archived={!!alreadyArchived} />,
       action: () => updateBookmarks({ archived: !alreadyArchived }),
       isPending: updateBookmarkMutator.isPending,
-- 
cgit v1.2.3-70-g09d2

