mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	Add attribute disableHighlightsList to disable Highlights List Widget
This commit is contained in:
		
							parent
							
								
									e9ece21d20
								
							
						
					
					
						commit
						e7d98206f9
					
				| @ -66,6 +66,7 @@ export default class HighlightsListWidget extends RightPanelWidget { | |||||||
|     isEnabled() { |     isEnabled() { | ||||||
|         return super.isEnabled() |         return super.isEnabled() | ||||||
|             && this.note.type === 'text' |             && this.note.type === 'text' | ||||||
|  | 	    && !this.note.hasLabel('disableHighlightsList') | ||||||
|             && !this.noteContext.viewScope.highlightsListTemporarilyHidden |             && !this.noteContext.viewScope.highlightsListTemporarilyHidden | ||||||
|             && this.noteContext.viewScope.viewMode === 'default'; |             && this.noteContext.viewScope.viewMode === 'default'; | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 fang64
						fang64