mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	fix event
This commit is contained in:
		| @@ -12,6 +12,7 @@ const TaskContext = require("../../services/task_context"); | |||||||
| const dayjs = require("dayjs"); | const dayjs = require("dayjs"); | ||||||
| const utc = require('dayjs/plugin/utc'); | const utc = require('dayjs/plugin/utc'); | ||||||
| const eventService = require("../../services/events"); | const eventService = require("../../services/events"); | ||||||
|  | const cls = require("../../services/cls.js"); | ||||||
| dayjs.extend(utc); | dayjs.extend(utc); | ||||||
|  |  | ||||||
| const LABEL = 'label'; | const LABEL = 'label'; | ||||||
| @@ -316,10 +317,12 @@ class BNote extends AbstractBeccaEntity { | |||||||
|             isSynced: true |             isSynced: true | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
|         eventService.emit(eventService.ENTITY_CHANGED, { |         if (!cls.isEntityEventsDisabled()) { | ||||||
|             entityName: 'note_contents', |             eventService.emit(eventService.ENTITY_CHANGED, { | ||||||
|             entity: this |                 entityName: 'note_contents', | ||||||
|         }); |                 entity: this | ||||||
|  |             }); | ||||||
|  |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     setJsonContent(content) { |     setJsonContent(content) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user