client: Disable template button in options

This commit is contained in:
Elian Doran 2024-08-17 00:55:14 +03:00
parent c1ab1296f8
commit fa4b890bce
No known key found for this signature in database

View File

@ -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();