mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-27 20:58:53 -05:00
add first agent connection to the details page and attribute firstconnect #7408
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user