diff --git a/package.json b/package.json index 03854a05..f7691f3c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.6.29", + "version": "0.6.30", "keywords": [ "Remote Device Management", "Remote Device Monitoring", diff --git a/views/default.handlebars b/views/default.handlebars index 81c4b7ce..85ad1470 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -8272,7 +8272,14 @@ if (event.etype == 'user') icon = 'm2'; if (event.etype == 'server') icon = 'si3'; - var msg = EscapeHtml(event.msg).split('(R)').join('®'); + var msg; + if ((event.msgid == null) || (eventsMessageId[event.msgid] == null)) { + msg = EscapeHtml(event.msg).split('(R)').join('®'); + } else { + msg = eventsMessageId[event.msgid]; + if (event.msgArgs != null) { for (var i in event.msgArgs) { msg = msg.split('{' + i + '}').join(event.msgArgs[i]); } } + msg = EscapeHtml(msg).split('(R)').join('®'); + } if (event.username) { if ((userinfo.siteadmin & 2) && (event.userid)) { msg = '' + EscapeHtml(event.username) + ' → ' + msg; @@ -12243,7 +12250,14 @@ if (event.etype == 'user') icon = 'm2'; if (event.etype == 'server') icon = 'si3'; - var msg = EscapeHtml(event.msg).split('(R)').join('®'); + var msg; + if ((event.msgid == null) || (eventsMessageId[event.msgid] == null)) { + msg = EscapeHtml(event.msg).split('(R)').join('®'); + } else { + msg = eventsMessageId[event.msgid]; + if (event.msgArgs != null) { for (var i in event.msgArgs) { msg = msg.split('{' + i + '}').join(event.msgArgs[i]); } } + msg = EscapeHtml(msg).split('(R)').join('®'); + } if (event.nodeid) { var node = getNodeFromId(event.nodeid); if (node != null) {