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(breadcrumb_badges): temporarily editable showing up always in popup editor
Elian Doran1eee471018a4
diff --git a/apps/client/src/widgets/BreadcrumbBadges.tsx b/apps/client/src/widgets/BreadcrumbBadges.tsxindex 9f8b0de93b..f1c6dd60ea 100644--- a/apps/client/src/widgets/BreadcrumbBadges.tsx+++ b/apps/client/src/widgets/BreadcrumbBadges.tsx@@ -57,7 +57,7 @@ function ReadOnlyBadge() {const { note, noteContext } = useNoteContext();const { isReadOnly, enableEditing } = useIsNoteReadOnly(note, noteContext);const isExplicitReadOnly = note?.isLabelTruthy("readOnly");- const isTemporarilyEditable = noteContext?.viewScope?.readOnlyTemporarilyDisabled;+ const isTemporarilyEditable = noteContext?.ntxId !== "_popup-editor" && noteContext?.viewScope?.readOnlyTemporarilyDisabled;if (isTemporarilyEditable) {return <Badge