@@ -100,17 +91,19 @@ export default function ActionBar({ bookmark }: { bookmark: ZBookmark }) {
+
- {
- deleteBookmark({ bookmarkId: bookmark.id });
- }}
+ onClick={() => setDeleteBookmarkDialogOpen(true)}
>
-
+
{t("actions.delete")}
diff --git a/apps/web/lib/i18n/locales/en/translation.json b/apps/web/lib/i18n/locales/en/translation.json
index 92f6e956..cdd31922 100644
--- a/apps/web/lib/i18n/locales/en/translation.json
+++ b/apps/web/lib/i18n/locales/en/translation.json
@@ -243,6 +243,12 @@
}
}
},
+ "dialogs": {
+ "bookmarks": {
+ "delete_confirmation_title": "Delete Bookmark?",
+ "delete_confirmation_description": "Are you sure you want to delete this bookmark?"
+ }
+ },
"toasts": {
"bookmarks": {
"updated": "The bookmark has been updated!",
--
cgit v1.2.3-70-g09d2