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

This commit is contained in:
Elian Doran 2025-08-21 12:49:03 +03:00
parent 9e947f742d
commit b93fa332d3
No known key found for this signature in database

View File

@ -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";
}
});