A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
mobile: show error when note is locked
ammarahm-ed45ebf0670fc9
diff --git a/apps/mobile/app/hooks/use-actions.js b/apps/mobile/app/hooks/use-actions.jsindex 0b8efb67b..809fb51d3 100644--- a/apps/mobile/app/hooks/use-actions.js+++ b/apps/mobile/app/hooks/use-actions.js@@ -170,7 +170,15 @@ export const useActions = ({ close = () => null, item }) => {checkNotifPinned();return;}- if (item.locked) return;+ if (item.locked) {+ ToastEvent.show({+ heading: "Note is locked",+ type: "error",+ message: "Locked notes cannot be pinned to notifications",+ context: "local"+ });+ return;+ }let text = await toTXT(item, false);let html = text.replace(/\n/g, "<br />");Notifications.displayNotification({@@ -520,7 +528,15 @@ export const useActions = ({ close = () => null, item }) => {}async function exportNote() {- if (item.locked) return;+ if (item.locked) {+ ToastEvent.show({+ heading: "Note is locked",+ type: "error",+ message: "Locked notes cannot be exported",+ context: "local"+ });+ return;+ }ExportNotesSheet.present([item]);}