mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 04:51:31 +08:00 
			
		
		
		
	client: Disable template button in options
This commit is contained in:
		
							parent
							
								
									c1ab1296f8
								
							
						
					
					
						commit
						fa4b890bce
					
				| @ -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(); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran