mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
fix(mermaid): toggle read-only for protected note
This commit is contained in:
parent
b777e916c4
commit
72c024fc26
@ -41,6 +41,7 @@ export default class ToggleReadOnlyButton extends OnClickButtonWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled()
|
||||
&& this.note?.type === "mermaid"
|
||||
&& this.note?.isContentAvailable()
|
||||
&& this.noteContext?.viewScope?.viewMode === "default";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user