diff --git a/meshagent.js b/meshagent.js index 025decbc..88c0b01f 100644 --- a/meshagent.js +++ b/meshagent.js @@ -1842,7 +1842,7 @@ module.exports.CreateMeshAgent = function (parent, db, ws, req, args, domain) { // Event device share removal if (removedExact != null) { // Send out an event that we removed a device share - var targets = parent.CreateNodeDispatchTargets(obj.dbMeshKey, obj.dbNodeKey, []); + var targets = parent.CreateNodeDispatchTargets(obj.dbMeshKey, obj.dbNodeKey, ['server-shareremove']); var event = { etype: 'node', nodeid: obj.dbNodeKey, action: 'removedDeviceShare', msg: 'Removed Device Share', msgid: 102, msgArgs: ['Agent'], domain: domain.id, publicid: publicid }; parent.parent.DispatchEvent(targets, obj, event); } diff --git a/meshuser.js b/meshuser.js index 8e379926..086128ec 100644 --- a/meshuser.js +++ b/meshuser.js @@ -4160,7 +4160,7 @@ module.exports.CreateMeshUser = function (parent, db, ws, req, args, domain, use // Event device share removal if (removedExact != null) { // Send out an event that we removed a device share - var targets = parent.CreateNodeDispatchTargets(node.meshid, node._id, ['server-users', user._id]); + var targets = parent.CreateNodeDispatchTargets(node.meshid, node._id, ['server-users', 'server-shareremove', user._id]); var event = { etype: 'node', userid: user._id, username: user.name, nodeid: node._id, action: 'removedDeviceShare', msg: 'Removed Device Share', msgid: 102, msgArgs: [removedExact.guestName], domain: domain.id, publicid: command.publicid }; parent.parent.DispatchEvent(targets, obj, event); diff --git a/views/default.handlebars b/views/default.handlebars index 4d0c96c6..4d71cd1a 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -10190,7 +10190,9 @@ case 'sessionerror': { p12setConsoleMsg("Session expired", 5000); break; } case 'sessiontimeout': { p12setConsoleMsg("Session timeout", 5000); break; } } - } else if (data[0] == '~') { xterm.writeUtf8(data.substring(1)); } + } else if (data[0] == '~') { + if (xterm.writeUtf8) { xterm.writeUtf8(data.substring(1)); } else { xterm.write(data.substring(1)); } + } } } diff --git a/views/ssh.handlebars b/views/ssh.handlebars index 407e0489..e3924656 100644 --- a/views/ssh.handlebars +++ b/views/ssh.handlebars @@ -37,14 +37,12 @@ -
+
-
-
-
-
+
+