Skip to content

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

web: disable properties button in action bar when diff is open

Abdullah Atta43a03079a1b7
diff --git a/apps/web/src/components/editor/action-bar.tsx b/apps/web/src/components/editor/action-bar.tsx
index 47236443d..f3022f294 100644
--- a/apps/web/src/components/editor/action-bar.tsx
+++ b/apps/web/src/components/editor/action-bar.tsx
@@ -114,6 +114,7 @@ export function EditorActionBar() {
activeSession.type !== "new" &&
activeSession.type !== "readonly" &&
activeSession.type !== "locked" &&
+ activeSession.type !== "diff" &&
!isFocusMode,
onClick: () => useEditorStore.getState().toggleProperties()
}