Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(quick_edit): address requested changes
Elian Doran56c82d7f0fc2
diff --git a/apps/client/src/widgets/dialogs/PopupEditor.tsx b/apps/client/src/widgets/dialogs/PopupEditor.tsxindex 0d84e5ba52..4950a41039 100644--- a/apps/client/src/widgets/dialogs/PopupEditor.tsx+++ b/apps/client/src/widgets/dialogs/PopupEditor.tsx@@ -62,10 +62,10 @@ export function DialogWrapper({ children }: { children: ComponentChildren }) {if (!wrapperRef.current) return;const customHue = getComputedStyle(wrapperRef.current).getPropertyValue("--custom-color-hue");setHasTint(!!customHue);- }, [ note, colorClass ]);+ }, [ note ]);return (- <div ref={wrapperRef} class={`quick-edit-dialog-wrapper ${note?.getColorClass()} ${hasTint ? "tinted-quick-edit-dialog" : ""}`}>+ <div ref={wrapperRef} class={`quick-edit-dialog-wrapper ${note?.getColorClass() ?? ""} ${hasTint ? "tinted-quick-edit-dialog" : ""}`}>{children}</div>)diff --git a/apps/client/src/widgets/react/hooks.tsx b/apps/client/src/widgets/react/hooks.tsxindex 82d01750cb..f30957befd 100644--- a/apps/client/src/widgets/react/hooks.tsx+++ b/apps/client/src/widgets/react/hooks.tsx@@ -271,6 +271,7 @@ export function useNoteContext() {setNote(noteContextContext.note);setNotePath(noteContextContext.notePath);setViewScope(noteContextContext.viewScope);+ setIsReadOnlyTemporarilyDisabled(noteContextContext?.viewScope?.readOnlyTemporarilyDisabled);}, [ noteContextContext ]);useEffect(() => {@@ -292,6 +293,7 @@ export function useNoteContext() {}});useTriliumEvent("readOnlyTemporarilyDisabled", ({ noteContext: eventNoteContext }) => {+ if (noteContextContext) return;if (eventNoteContext.ntxId === noteContext?.ntxId) {setIsReadOnlyTemporarilyDisabled(eventNoteContext?.viewScope?.readOnlyTemporarilyDisabled);}