Skip to content

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

web: add readonly menu item in context menu

Abdullah Attaf2608a1a8d1e
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.js
index a5c32474d..fee8b6f93 100644
--- a/apps/web/src/components/note/index.js
+++ b/apps/web/src/components/note/index.js
@@ -316,6 +316,13 @@ const menuItems = [
await pin(note);
}
},
+ {
+ key: "readonly",
+ title: "Readonly",
+ checked: ({ note }) => note.readonly,
+ icon: Icon.Readonly,
+ onClick: ({ note }) => store.readonly(note.id)
+ },
{
key: "favorite",
title: "Favorite",