fix: disable whiteboards for db version

This commit is contained in:
Tienson Qin
2024-08-13 16:00:21 +08:00
parent a0b8b3c987
commit 440fed836c
3 changed files with 5 additions and 48 deletions

View File

@@ -197,7 +197,9 @@
:fn editor-handler/keydown-new-line-handler}
:editor/new-whiteboard {:binding "n w"
:fn #(whiteboard-handler/<create-new-whiteboard-and-redirect!)}
:fn (fn []
(when-not (config/db-based-graph? (state/get-current-repo))
(whiteboard-handler/<create-new-whiteboard-and-redirect!)))}
:editor/follow-link {:binding "mod+o"
:fn editor-handler/follow-link-under-cursor!}