mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Added support for IP-KVM device groups.
This commit is contained in:
parent
e441421131
commit
3c6ccc9139
5 changed files with 71 additions and 12 deletions
|
@ -2995,7 +2995,7 @@
|
|||
//r += getMeshActions(mesh, meshrights);
|
||||
r += '</span><span id=MxMESH style=cursor:pointer onclick=goForward("' + mesh._id + '")>' + EscapeHtml(mesh.name) + '</span></div>';
|
||||
if (mesh.mtype == 1) { r += '<div style=padding:10px><i>' + "No Intel® AMT devices in this group"; }
|
||||
if (mesh.mtype == 2) { r += '<div style=padding:10px><i>' + "No devices in this group"; }
|
||||
if (mesh.mtype > 1) { r += '<div style=padding:10px><i>' + "No devices in this group"; }
|
||||
r += '.</i></div></div>';
|
||||
current = mesh._id;
|
||||
count++;
|
||||
|
@ -5931,6 +5931,8 @@
|
|||
var meshrights = GetMeshRights(currentMesh);
|
||||
if (currentMesh.mtype == 1) meshtype = "Intel® AMT only, no agent";
|
||||
if (currentMesh.mtype == 2) meshtype = "Managed using a software agent";
|
||||
if (currentMesh.mtype == 3) meshtype = "Local devices, no agent";
|
||||
if (currentMesh.mtype == 4) { meshtype = "IP KVM device"; if (currentMesh.kvm.model == 1) { meshtype += ', ' + 'Raritan KX III'; } }
|
||||
|
||||
var x = '';
|
||||
x += addHtmlValue("Name", addLinkConditional(EscapeHtml(currentMesh.name), 'p20editmesh(1)', (meshrights & 1) != 0));
|
||||
|
@ -5938,6 +5940,12 @@
|
|||
x += addHtmlValue("Type", meshtype);
|
||||
//x += addHtmlValue('Identifier', currentMesh._id.split('/')[2]);
|
||||
|
||||
// Display IP KVM information if needed
|
||||
if (currentMesh.mtype == 4) {
|
||||
x += addHtmlValue("Hostname", currentMesh.kvm.host);
|
||||
x += addHtmlValue("Username", currentMesh.kvm.user);
|
||||
}
|
||||
|
||||
x += '<br><input type=button value=Notes onclick=showNotes(false,"' + encodeURIComponent(currentMesh._id) + '") />';
|
||||
|
||||
x += '<br style=clear:both><br>';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue