mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	client: Disable template button in options
This commit is contained in:
		| @@ -6,6 +6,11 @@ import attributeService from "../services/attributes.js"; | |||||||
|  */ |  */ | ||||||
| export default class TemplateSwitchWidget extends SwitchWidget { | export default class TemplateSwitchWidget extends SwitchWidget { | ||||||
|  |  | ||||||
|  |     isEnabled() { | ||||||
|  |         return super.isEnabled() | ||||||
|  |             && !this.noteId.startsWith('_options'); | ||||||
|  |     } | ||||||
|  |  | ||||||
|     doRender() { |     doRender() { | ||||||
|         super.doRender(); |         super.doRender(); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user