ancillary type widget

This commit is contained in:
zadam
2023-02-15 14:32:12 +01:00
parent b1e2b5ba8e
commit 520ffecd36
11 changed files with 134 additions and 9 deletions

View File

@@ -36,7 +36,8 @@ export default class MermaidWidget extends NoteContextAwareWidget {
isEnabled() {
return super.isEnabled()
&& this.note?.type === 'mermaid'
&& this.note.isContentAvailable();
&& this.note.isContentAvailable()
&& this.noteContext?.viewScope.viewMode === 'default';
}
doRender() {