From 4cad78061391e78925c3c5ccdc47ad57e4e72f58 Mon Sep 17 00:00:00 2001 From: si458 Date: Thu, 14 Dec 2023 15:51:11 +0000 Subject: [PATCH] add alert box message for translations Signed-off-by: si458 --- agents/meshcore.js | 2 +- views/default.handlebars | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/agents/meshcore.js b/agents/meshcore.js index eeed266010..12b958c721 100644 --- a/agents/meshcore.js +++ b/agents/meshcore.js @@ -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; diff --git a/views/default.handlebars b/views/default.handlebars index 097c6d5f8c..bd5a33afe1 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -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 = {