Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: show alert when exporting locked notes

thecodrr8a345d8e95cd
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index fc9cdf629..ced5430c5 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -184,6 +184,10 @@ const menuItems = [
key: "export",
title: () => "Export",
onClick: async ({ note }) => {
+ if (note.locked) {
+ alert("Locked notes cannot be exported currently.");
+ return;
+ }
if (await showExportDialog([note.id]))
showToast("success", `Note exported successfully!`);
},