feat(mermaid): reintroduce editability basic widget

This commit is contained in:
Elian Doran 2025-03-22 12:58:36 +02:00
parent 2bbd9a4362
commit 68b3c06c95
No known key found for this signature in database

View File

@ -123,7 +123,7 @@ export default class BasicPropertiesWidget extends NoteContextAwareWidget {
return;
}
this.$widget.find(".editability-select-container").toggle(this.note && ["text", "code"].includes(this.note.type));
this.$widget.find(".editability-select-container").toggle(this.note && ["text", "code", "mermaid"].includes(this.note.type));
this.$widget.find(".note-language-container").toggle(this.note && ["text"].includes(this.note.type));
}
}