mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	fix autobook switching back to text
This commit is contained in:
		
							parent
							
								
									6de0f75931
								
							
						
					
					
						commit
						6a1bfdeab9
					
				| @ -240,9 +240,11 @@ export default class NoteDetailWidget extends TabAwareWidget { | ||||
|         this.spacedUpdate.updateNowIfNecessary(); | ||||
|     } | ||||
| 
 | ||||
|     autoBookDisabledEvent() { | ||||
|     autoBookDisabledEvent({tabContext}) { | ||||
|         if (this.isTab(tabContext.tabId)) { | ||||
|             this.refresh(); | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     async cutIntoNoteCommand() { | ||||
|         const note = appContext.tabManager.getActiveTabNote(); | ||||
|  | ||||
| @ -136,7 +136,7 @@ export default class BookTypeWidget extends TypeWidget { | ||||
|             const $addTextLink = $('<a href="javascript:">here</a>').on('click', () => { | ||||
|                 this.tabContext.autoBookDisabled = true; | ||||
| 
 | ||||
|                 this.triggerEvent('autoBookDisabled'); | ||||
|                 this.triggerEvent('autoBookDisabled', {tabContext: this.tabContext}); | ||||
|             }); | ||||
| 
 | ||||
|             this.$content.append($('<div class="note-book-auto-message"></div>') | ||||
|  | ||||
| @ -36,4 +36,10 @@ export default class TypeWidget extends TabAwareWidget { | ||||
|     scrollToTop() { | ||||
|         this.$widget.scrollTop(0); | ||||
|     } | ||||
| 
 | ||||
|     autoBookDisabledEvent({tabContext}) { | ||||
|         if (this.isTab(tabContext.tabId)) { | ||||
|             this.refresh(); | ||||
|         } | ||||
|     } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 zadam
						zadam