Skip to content

Build your personal knowledge base with Trilium Notes

client: Disable template button in options

Elian Doranfa4b890bcefc
diff --git a/src/public/app/widgets/template_switch.js b/src/public/app/widgets/template_switch.js
index 7d7e363465..f184409739 100644
--- a/src/public/app/widgets/template_switch.js
+++ b/src/public/app/widgets/template_switch.js
@@ -6,6 +6,11 @@ import attributeService from "../services/attributes.js";
*/
export default class TemplateSwitchWidget extends SwitchWidget {
+ isEnabled() {
+ return super.isEnabled()
+ && !this.noteId.startsWith('_options');
+ }
+
doRender() {
super.doRender();