diff --git a/package.json b/package.json index d2161894..f53e1dea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.4.2-m", + "version": "0.4.2-o", "keywords": [ "Remote Management", "Intel AMT", diff --git a/views/default-min.handlebars b/views/default-min.handlebars index e00aac4a..a1d586ac 100644 --- a/views/default-min.handlebars +++ b/views/default-min.handlebars @@ -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). } else { // 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.flags != null) { meshes[message.event.meshid].flags = message.event.flags; } if (message.event.consent != null) { meshes[message.event.meshid].consent = message.event.consent; } diff --git a/views/default-mobile-min.handlebars b/views/default-mobile-min.handlebars index dfbd4b9a..7b40fd03 100644 --- a/views/default-mobile-min.handlebars +++ b/views/default-mobile-min.handlebars @@ -1 +1 @@ - {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file + {{{title}}}
{{{title}}}
{{{title2}}}
\ No newline at end of file diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index 552f7f87..45461ff8 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -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). } else { // This is an existing mesh - meshes[message.event.meshid].name = message.event.name; + if (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].links = message.event.links; diff --git a/views/default.handlebars b/views/default.handlebars index c84e196c..f25fbe28 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -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). } else { // 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.flags != null) { meshes[message.event.meshid].flags = message.event.flags; } if (message.event.consent != null) { meshes[message.event.meshid].consent = message.event.consent; }