mirror of
https://github.com/zadam/trilium.git
synced 2025-12-13 03:39:54 +01:00
fix(breadcrumb_badges): temporarily editable showing up always in popup editor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user