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