fix(ux): Scroll to respective field in system settings via action

(cherry picked from commit 4b597571b4322358aa5f1e35c5feb8465634a448)
This commit is contained in:
Gavin D'souza 2025-03-25 16:35:41 +01:00
parent 3e0a526f70
commit 98a807af89
No known key found for this signature in database
GPG key ID: 5413A43FBD450A34

View file

@ -6,7 +6,9 @@ frappe.pages["backups"].on_page_load = function (wrapper) {
});
page.add_inner_button(__("Set Number of Backups"), function () {
frappe.set_route("Form", "System Settings");
frappe.set_route("Form", "System Settings").then(() => {
cur_frm.scroll_to_field("backup_limit");
});
});
page.add_inner_button(__("Download Files Backup"), function () {