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
fix(layout): classic toolbar not appearing after making a note temporarily editable
Elian Doran4896042fc4f8
diff --git a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx b/apps/client/src/widgets/ribbon/FormattingToolbar.tsxindex b78734f9fe..610063a3c0 100644--- a/apps/client/src/widgets/ribbon/FormattingToolbar.tsx+++ b/apps/client/src/widgets/ribbon/FormattingToolbar.tsx@@ -100,7 +100,7 @@ function useRenderState(activeNoteContext: NoteContext | undefined, activeNote:const [ textNoteEditorType ] = useTriliumOption("textNoteEditorType");const [ state, setState ] = useState("hidden");- useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved" ], () => {+ useTriliumEvents([ "newNoteContextCreated", "noteContextRemoved", "readOnlyTemporarilyDisabled" ], () => {getFormattingToolbarState(activeNoteContext, activeNote, textNoteEditorType).then(setState);});