diff --git a/views/default.handlebars b/views/default.handlebars
index d613b0a3..cc6ec576 100644
--- a/views/default.handlebars
+++ b/views/default.handlebars
@@ -11710,7 +11710,7 @@
// Show device shares
if ((deviceShares != null) && (deviceSharesNode == currentMesh._id) && (deviceShares.length > 0)) {
- x += '
' + "Active Device Sharing" + ' | |
';
+ x += '' + "Active Device Sharing" + ' | | |
';
count = 1;
for (var i = 0; i < deviceShares.length; i++) {
var dshare = deviceShares[i], trash = '';
@@ -11728,7 +11728,12 @@
}
var guestName = EscapeHtml(dshare.guestName);
if (dshare.publicid.startsWith('AS:node/')) { guestName = '' + "Agent Self-Share" + ''; }
- x += ' | ' + trash + ' ' + details + ' |
';
+ var node = getNodeFromId(dshare.nodeid);
+ if (node != null) {
+ var gray = ((node.conn > 0)?'':' gray');
+ var computer = ' ' + EscapeHtml(node.name) + '';
+ x += '' + computer + ' | | ' + trash + ' ' + details + ' |
';
+ }
}
x += '
';
} else {
@@ -11760,11 +11765,7 @@
// If we are full administrator on this mesh, allow deletion of the mesh
if (meshrights == 0xFFFFFFFF) {
- if (count == 0) {
- x += '';
- } else {
- y += '';
- }
+ y += '';
}
QH('p20info', x);