fix(UX): freeze screen while navigating (#33652)
Also works as giving some feedback while changing the page.
This commit is contained in:
parent
354960fc16
commit
4c3c980bac
1 changed files with 8 additions and 6 deletions
|
|
@ -1340,12 +1340,14 @@ frappe.ui.form.Form = class FrappeForm {
|
|||
prev,
|
||||
};
|
||||
|
||||
frappe.call("frappe.desk.form.utils.get_next", args).then((r) => {
|
||||
if (r.message) {
|
||||
frappe.set_route("Form", this.doctype, r.message);
|
||||
this.focus_on_first_input();
|
||||
}
|
||||
});
|
||||
frappe
|
||||
.call({ method: "frappe.desk.form.utils.get_next", args, freeze: true })
|
||||
.then((r) => {
|
||||
if (r.message) {
|
||||
frappe.set_route("Form", this.doctype, r.message);
|
||||
this.focus_on_first_input();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
rename_doc() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue