-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
54 additions
and
8 deletions.
There are no files selected for viewing
18 changes: 13 additions & 5 deletions
18
frappe/desk/doctype/system_health_report/system_health_report.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,16 @@ | ||
// Copyright (c) 2024, Frappe Technologies and contributors | ||
// For license information, please see license.txt | ||
|
||
// frappe.ui.form.on("System Health Report", { | ||
// refresh(frm) { | ||
|
||
// }, | ||
// }); | ||
frappe.ui.form.on("System Health Report", { | ||
refresh(frm) { | ||
frm.set_value("socketio_ping_check", "Fail"); | ||
frappe.realtime.on("pong", () => { | ||
frm.set_value("socketio_ping_check", "Pass"); | ||
frm.set_value( | ||
"socketio_transport_mode", | ||
frappe.realtime.socket.io?.engine?.transport?.name | ||
); | ||
}); | ||
frappe.realtime.emit("ping"); | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters