Fixed device group ordering.

This commit is contained in:
Ylian Saint-Hilaire 2019-10-15 16:16:09 -07:00
parent 4d3b3c78f0
commit c70d755854
5 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "meshcentral", "name": "meshcentral",
"version": "0.4.2-m", "version": "0.4.2-o",
"keywords": [ "keywords": [
"Remote Management", "Remote Management",
"Intel AMT", "Intel AMT",

View File

@ -8017,7 +8017,10 @@ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this
meshserver.send({ action: 'nodes' }); // Request a refresh of all nodes (TODO: We could optimize this to only request nodes for the new mesh). meshserver.send({ action: 'nodes' }); // Request a refresh of all nodes (TODO: We could optimize this to only request nodes for the new mesh).
} else { } else {
// This is an existing mesh // This is an existing mesh
if (message.event.name != null) { meshes[message.event.meshid].name = message.event.name; } if (message.event.name != null) {
meshes[message.event.meshid].name = message.event.name;
for (var i in nodes) { if (nodes[i].meshid == message.event.meshid) { nodes[i].meshnamel = message.event.name.toLowerCase(); } }
}
if (message.event.desc != null) { meshes[message.event.meshid].desc = message.event.desc; } if (message.event.desc != null) { meshes[message.event.meshid].desc = message.event.desc; }
if (message.event.flags != null) { meshes[message.event.meshid].flags = message.event.flags; } if (message.event.flags != null) { meshes[message.event.meshid].flags = message.event.flags; }
if (message.event.consent != null) { meshes[message.event.meshid].consent = message.event.consent; } if (message.event.consent != null) { meshes[message.event.meshid].consent = message.event.consent; }

File diff suppressed because one or more lines are too long

View File

@ -888,7 +888,10 @@
meshserver.send({ action: 'nodes' }); // Request a refresh of all nodes (TODO: We could optimize this to only request nodes for the new mesh). meshserver.send({ action: 'nodes' }); // Request a refresh of all nodes (TODO: We could optimize this to only request nodes for the new mesh).
} else { } else {
// This is an existing mesh // This is an existing mesh
if (meshes[message.event.meshid].name != message.event.name) {
meshes[message.event.meshid].name = message.event.name; meshes[message.event.meshid].name = message.event.name;
for (var i in nodes) { if (nodes[i].meshid == message.event.meshid) { nodes[i].meshnamel = message.event.name.toLowerCase(); } }
}
meshes[message.event.meshid].desc = message.event.desc; meshes[message.event.meshid].desc = message.event.desc;
meshes[message.event.meshid].links = message.event.links; meshes[message.event.meshid].links = message.event.links;

View File

@ -1988,7 +1988,10 @@
meshserver.send({ action: 'nodes' }); // Request a refresh of all nodes (TODO: We could optimize this to only request nodes for the new mesh). meshserver.send({ action: 'nodes' }); // Request a refresh of all nodes (TODO: We could optimize this to only request nodes for the new mesh).
} else { } else {
// This is an existing mesh // This is an existing mesh
if (message.event.name != null) { meshes[message.event.meshid].name = message.event.name; } if (message.event.name != null) {
meshes[message.event.meshid].name = message.event.name;
for (var i in nodes) { if (nodes[i].meshid == message.event.meshid) { nodes[i].meshnamel = message.event.name.toLowerCase(); } }
}
if (message.event.desc != null) { meshes[message.event.meshid].desc = message.event.desc; } if (message.event.desc != null) { meshes[message.event.meshid].desc = message.event.desc; }
if (message.event.flags != null) { meshes[message.event.meshid].flags = message.event.flags; } if (message.event.flags != null) { meshes[message.event.meshid].flags = message.event.flags; }
if (message.event.consent != null) { meshes[message.event.meshid].consent = message.event.consent; } if (message.event.consent != null) { meshes[message.event.meshid].consent = message.event.consent; }