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
feat: add toast notification for note lock/unlock
thecodrrf2e3d1981094
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex 9926550fb..609c2c98f 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -15,6 +15,7 @@ import { showExportDialog } from "../dialogs/exportdialog";import { setHashParam } from "../../utils/useHashParam";import { showNoteDeleted } from "../../common/toasts";import { showUnpinnedToast } from "../../common/toasts";+import { showToast } from "../../utils/toast";function menuItems(note, context) {return [@@ -51,9 +52,11 @@ function menuItems(note, context) {onClick: async () => {const { unlock, lock } = store;if (!note.locked) {- lock(note.id);+ await lock(note.id);+ showToast("success", "Note locked successfully!");} else {- unlock(note.id);+ await unlock(note.id);+ showToast("success", "Note unlocked successfully!");}},onlyPro: true,