mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 02:16:05 +01:00 
			
		
		
		
	don't use alert, #3483
This commit is contained in:
		| @@ -8,5 +8,5 @@ | ||||
| <h4>Example script</h4> | ||||
|  | ||||
| <pre> | ||||
| alert("Current note is " + api.getActiveContextNote().title); | ||||
| api.showMessage("Current note is " + api.getActiveContextNote().title); | ||||
| </pre> | ||||
|   | ||||
| @@ -1606,7 +1606,7 @@ export default class NoteTreeWidget extends NoteContextAwareWidget { | ||||
|         const resp = await server.post(`special-notes/launchers/${node.data.noteId}/${launcherType}`); | ||||
|  | ||||
|         if (!resp.success) { | ||||
|             alert(resp.message); | ||||
|             toastService.showError(resp.message); | ||||
|         } | ||||
|  | ||||
|         await ws.waitForMaxKnownEntityChangeId(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user