Skip to content

Commit

Permalink
add alert box message for translations
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Dec 14, 2023
1 parent 947d843 commit 4cad780
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion agents/meshcore.js
Expand Up @@ -1469,7 +1469,7 @@ function handleServerCommand(data) {
case 'alertbox': {
// Display an old style alert box
if (data.title && data.msg) {
MeshServerLogEx(18, [data.title, data.msg], "Displaying alert box, title=" + data.title + ", message=" + data.msg, data);
MeshServerLogEx(158, [data.title, data.msg], "Displaying alert box, title=" + data.title + ", message=" + data.msg, data);
try { require('message-box').create(data.title, data.msg, 9999, 1).then(function () { }).catch(function () { }); } catch (ex) { }
}
break;
Expand Down
3 changes: 2 additions & 1 deletion views/default.handlebars
Expand Up @@ -14697,7 +14697,8 @@
154: "Account changed to sync with LDAP data.",
155: "Denied user login from {0}, {1}, {2}",
156: "Verified messaging account of user {0}",
157: "Removed messaging account of user {0}"
157: "Removed messaging account of user {0}",
158: "Displaying alert box, title=\"{0}\", message=\"{1}\""
};

var eventsShortMessageId = {
Expand Down

0 comments on commit 4cad780

Please sign in to comment.