mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 00:35:50 +01:00
ancillary type widget
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user