mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 14:51:05 +08:00
fix(client): please wait for save showing up multiple times
This commit is contained in:
parent
9e947f742d
commit
b93fa332d3
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Reference in a new issue