mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 10:26:08 +01:00 
			
		
		
		
	#98, better error reporting for sync setup
This commit is contained in:
		| @@ -223,9 +223,14 @@ addTabHandler((function() { | ||||
|     }); | ||||
|  | ||||
|     $syncToServerButton.click(async () => { | ||||
|         await server.post("setup/sync-to-server"); | ||||
|         const resp = await server.post("setup/sync-to-server"); | ||||
|  | ||||
|         infoService.showMessage("Sync has been established to the server instance. It will take some time to finish."); | ||||
|         if (resp.success) { | ||||
|             infoService.showMessage("Sync has been established to the server instance. It will take some time to finish."); | ||||
|         } | ||||
|         else { | ||||
|             infoService.showError('Sync setup failed: ' + resp.error); | ||||
|         } | ||||
|     }); | ||||
|  | ||||
|     return { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user