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
fix: hide disable sync menu item if user isn't logged in
thecodrrb80250956813
diff --git a/apps/web/src/components/note/index.js b/apps/web/src/components/note/index.jsindex a6f5769c5..c9592fac2 100644--- a/apps/web/src/components/note/index.js+++ b/apps/web/src/components/note/index.js@@ -5,6 +5,7 @@ import TimeAgo from "../time-ago";import ListItem from "../list-item";import { confirm, showMoveNoteDialog } from "../../common/dialog-controller";import { store, useStore } from "../../stores/note-store";+import { store as userstore } from "../../stores/user-store";import { useStore as useAttachmentStore } from "../../stores/attachment-store";import { db } from "../../common/db";import { showUnpinnedToast } from "../../common/toasts";@@ -366,6 +367,7 @@ const menuItems = [},{key: "sync-disable",+ hidden: () => !userstore.get().isLoggedIn,disabled: ({ note }) =>!db.notes.note(note.id).synced() ? notFullySyncedText : false,title: ({ note }) => (note.localOnly ? "Enable sync" : "Disable sync"),