Fixed web page title with device group

This commit is contained in:
Ylian Saint-Hilaire 2019-09-14 17:44:24 -07:00
parent 6b3487a1d8
commit bcbab066c6
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
{
"name": "meshcentral",
"version": "0.4.0-q",
"version": "0.4.0-r",
"keywords": [
"Remote Management",
"Intel AMT",

View File

@ -4230,7 +4230,11 @@
refreshDeviceEvents();
// Update the web page title
if ((currentNode) && (xxcurrentView >= 10) && (xxcurrentView < 20)) { document.title = decodeURIComponent("{{{extitle}}}") + ' - ' + currentNode.name + ' - ' + mesh.name; } else { document.title = decodeURIComponent("{{{extitle}}}"); }
if ((currentNode) && (xxcurrentView >= 10) && (xxcurrentView < 20)) {
document.title = decodeURIComponent("{{{extitle}}}") + ' - ' + currentNode.name + ' - ' + mesh.name;
} else {
document.title = decodeURIComponent("{{{extitle}}}");
}
// Clear user consent status if present
p11clearConsoleMsg();
@ -8826,7 +8830,11 @@
if ((x == 40) && (serverTimelineStats == null)) { refreshServerTimelineStats(); }
// Update the web page title
if ((currentNode) && (x >= 10) && (x < 20)) { document.title = decodeURIComponent("{{{extitle}}}") + ' - ' + currentNode.name; } else { document.title = decodeURIComponent("{{{extitle}}}"); }
if ((currentNode) && (x >= 10) && (x < 20)) {
document.title = decodeURIComponent("{{{extitle}}}") + ' - ' + currentNode.name + ' - ' + meshes[currentNode.meshid].name;
} else {
document.title = decodeURIComponent("{{{extitle}}}");
}
}
// Generic methods