mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-11 11:02:27 +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() {
|
isEnabled() {
|
||||||
return super.isEnabled()
|
return super.isEnabled()
|
||||||
&& this.note?.type === "mermaid"
|
&& this.note?.type === "mermaid"
|
||||||
|
&& this.note?.isContentAvailable()
|
||||||
&& this.noteContext?.viewScope?.viewMode === "default";
|
&& this.noteContext?.viewScope?.viewMode === "default";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user