mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	client: Disable share button in options
This commit is contained in:
		
							parent
							
								
									1284cf9868
								
							
						
					
					
						commit
						c1ab1296f8
					
				| @ -8,7 +8,8 @@ import dialogService from "../services/dialog.js"; | ||||
| export default class SharedSwitchWidget extends SwitchWidget { | ||||
|     isEnabled() { | ||||
|         return super.isEnabled() | ||||
|             && !['root', '_share', '_hidden'].includes(this.noteId); | ||||
|             && !['root', '_share', '_hidden'].includes(this.noteId) | ||||
|             && !this.noteId.startsWith('_options'); | ||||
|     } | ||||
| 
 | ||||
|     doRender() { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran