fix(breadcrumb_badges): temporarily editable showing up always in popup editor

This commit is contained in:
Elian Doran
2025-12-11 17:20:28 +02:00
parent c3829f82ab
commit 1eee471018

View File

@@ -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