Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): please wait for save showing up multiple times

Elian Doranb93fa332d30c
diff --git a/apps/client/src/components/app_context.ts b/apps/client/src/components/app_context.ts
index 4c750a544a..80af6adf71 100644
--- a/apps/client/src/components/app_context.ts
+++ b/apps/client/src/components/app_context.ts
@@ -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";
}
});