add first agent connection to the details page and attribute firstconnect #7408

Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
si458
2025-11-16 18:53:30 +00:00
parent 9545bec218
commit a1f182426e
6 changed files with 7153 additions and 6745 deletions

View File

@@ -6384,6 +6384,7 @@
if (node.agent.id == 14) { str = node.agent.core; }
x += addDetailItem("Mesh Agent", str);
}
if (node.firstconnect) { x += addDetailItem("First agent connection", printDateTime(new Date(node.firstconnect))); }
if ((node.conn & 1) != 0) {
x += addDetailItem("Last agent connection", "Connected now");
} else {

View File

@@ -2858,6 +2858,7 @@
updateDeviceDetails(getNodeFromId(message.nodeid), null, message);
if ((xxdialogMode == 2) && (xxdialogTag == 'if' + message.nodeid)) {
var x = '<div class=dialogText>';
if (currentNode.firstconnect) { x += addHtmlValue2("First agent connection", printDateTime(new Date(currentNode.firstconnect))); }
if (currentNode.lastconnect) { x += addHtmlValue2("Last agent connection", printDateTime(new Date(currentNode.lastconnect))); }
if (currentNode.lastaddr) {
var splitip = currentNode.lastaddr.split(':');
@@ -12218,6 +12219,7 @@
if (node.agent.id == 14) { str = node.agent.core; }
x += addDetailItem("Mesh Agent", str);
}
if (node.firstconnect) { x += addDetailItem("First agent connection", printDateTime(new Date(node.firstconnect))); }
if ((node.conn & 1) != 0) {
x += addDetailItem("Last agent connection", "Connected now");
} else {

View File

@@ -3497,6 +3497,7 @@
updateDeviceDetails(getNodeFromId(message.nodeid), null, message);
if ((xxdialogMode == 2) && (xxdialogTag == 'if' + message.nodeid)) {
var x = '<div class=dialogText>';
if (currentNode.firstconnect) { x += addHtmlValue2("First agent connection", printDateTime(new Date(currentNode.firstconnect))); }
if (currentNode.lastconnect) { x += addHtmlValue2("Last agent connection", printDateTime(new Date(currentNode.lastconnect))); }
if (currentNode.lastaddr) {
var splitip = currentNode.lastaddr.split(':');
@@ -13230,6 +13231,7 @@
if (node.agent.id == 14) { str = node.agent.core; }
x += addDetailItem("Mesh Agent", str);
}
if (node.firstconnect) { x += addDetailItem("First agent connection", printDateTime(new Date(node.firstconnect))); }
if ((node.conn & 1) != 0) {
x += addDetailItem("Last agent connection", "Connected now");
} else {