mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	fix showMessage, showError
(cherry picked from commit 6128bb4)
This commit is contained in:
		
							parent
							
								
									b5e6f46b9c
								
							
						
					
					
						commit
						63066802a8
					
				@ -1,6 +1,7 @@
 | 
				
			|||||||
import treeService from './tree.js';
 | 
					import treeService from './tree.js';
 | 
				
			||||||
import server from './server.js';
 | 
					import server from './server.js';
 | 
				
			||||||
import utils from './utils.js';
 | 
					import utils from './utils.js';
 | 
				
			||||||
 | 
					import infoService from './info.js';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function ScriptApi(startNote, currentNote) {
 | 
					function ScriptApi(startNote, currentNote) {
 | 
				
			||||||
    const $pluginButtons = $("#plugin-buttons");
 | 
					    const $pluginButtons = $("#plugin-buttons");
 | 
				
			||||||
@ -56,8 +57,8 @@ function ScriptApi(startNote, currentNote) {
 | 
				
			|||||||
        runOnServer,
 | 
					        runOnServer,
 | 
				
			||||||
        formatDateISO: utils.formatDateISO,
 | 
					        formatDateISO: utils.formatDateISO,
 | 
				
			||||||
        parseDate: utils.parseDate,
 | 
					        parseDate: utils.parseDate,
 | 
				
			||||||
        showMessage: utils.showMessage,
 | 
					        showMessage: infoService.showMessage,
 | 
				
			||||||
        showError: utils.showError,
 | 
					        showError: infoService.showError,
 | 
				
			||||||
        reloadTree: treeService.reload
 | 
					        reloadTree: treeService.reload
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user