From 911d987a84cf431065f473447ff82f06b420d063 Mon Sep 17 00:00:00 2001 From: si458 Date: Sun, 10 Nov 2024 22:27:57 +0000 Subject: [PATCH] fix actions modal popup and icon changes Signed-off-by: si458 --- views/default3.handlebars | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/views/default3.handlebars b/views/default3.handlebars index 8bbf7515..8c89d86d 100644 --- a/views/default3.handlebars +++ b/views/default3.handlebars @@ -9517,6 +9517,7 @@ if (op == 100) { // Device wake meshserver.send({ action: 'wakedevices', nodeids: [currentNode._id] }); + return true; } else if (op == 103) { // Send MQTT Message p10showSendMqttMsgDialog([currentNode._id]); @@ -9569,10 +9570,13 @@ } else if ((op == 400) || (op == 401)) { // Flash / vibrate meshserver.send({ action: 'poweraction', nodeids: [currentNode._id], actiontype: parseInt(op), time: parseInt(Q('d2devicetime').value) }); + return true; } else { // Power operation meshserver.send({ action: 'poweraction', nodeids: [currentNode._id], actiontype: parseInt(op) }); + return true; } + return false; } function deviceActionOneClickRecovery() { @@ -18664,9 +18668,9 @@ dateHeader = printDate(time); x += ''; } - var icon = 'si3'; - if (event.etype == 'user') icon = 'm2'; - if (event.etype == 'server') icon = 'si3'; + var icon = 'fa-mobile-screen'; + if (event.etype == 'user') icon = 'fa-user'; + if (event.etype == 'server') icon = 'fa-server'; var msg; if ((event.msgid == null) || (eventsMessageId[event.msgid] == null)) { @@ -18699,8 +18703,8 @@ } else if (event.guestname) { msg = '' + EscapeHtml(event.guestname) + ' → ' + msg; } - if (event.etype == 'relay' || event.action == 'relaylog') icon = 'relayIcon16'; - x += ''; + if (event.etype == 'relay' || event.action == 'relaylog') icon = 'fa-arrow-right-arrow-left'; + x += ''; } } if (dateHeader != null) x += '
' + dateHeader + '
 ' + printTime(time) + ' - ' + msg + '
 ' + printTime(time) + ' - ' + msg + '
';