mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix(client): please wait for save showing up multiple times
This commit is contained in:
		@@ -676,14 +676,12 @@ $(window).on("beforeunload", () => {
 | 
			
		||||
 | 
			
		||||
        if (!component.beforeUnloadEvent()) {
 | 
			
		||||
            console.log(`Component ${component.componentId} is not finished saving its state.`);
 | 
			
		||||
 | 
			
		||||
            toast.showMessage(t("app_context.please_wait_for_save"), 10000);
 | 
			
		||||
 | 
			
		||||
            allSaved = false;
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!allSaved) {
 | 
			
		||||
        toast.showMessage(t("app_context.please_wait_for_save"), 10000);
 | 
			
		||||
        return "some string";
 | 
			
		||||
    }
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user