From c11cb31b4d2ea521973af8ec02c784f26c1e8186 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Sat, 12 Feb 2022 13:00:37 -0800 Subject: [PATCH] Fixed dark mode buttons on desktop tab, #3633 --- agents/agent-translations.json | 2 +- meshipkvm.js | 3 ++- public/styles/style.css | 9 +++++++++ views/default.handlebars | 26 +++++++++++++------------- 4 files changed, 25 insertions(+), 15 deletions(-) diff --git a/agents/agent-translations.json b/agents/agent-translations.json index b02312dc..cca75822 100644 --- a/agents/agent-translations.json +++ b/agents/agent-translations.json @@ -4,7 +4,7 @@ "agentVersion": "New Version", "group": "Device Group", "url": "Server URL", - "meshName": "Mesh Name", + "meshName": "Group Name", "meshId": "Group Identifier", "serverId": "Server Identifier", "setup": "Setup", diff --git a/meshipkvm.js b/meshipkvm.js index a471554a..1522b7f6 100644 --- a/meshipkvm.js +++ b/meshipkvm.js @@ -223,9 +223,10 @@ function CreateIPKVMManager(parent) { if (obj.managedPorts[nodeid] != null) { // This port is no longer connected parent.ClearConnectivityState(sender.meshid, nodeid, 1, null, null); + const mesh = parent.webserver.meshes[sender.meshid]; // If the device group policy is set to auto-remove devices, remove it now - if ((mesh.flags) && (mesh.flags & 1)) { // Auto-remove devices + if ((mesh != null) && (mesh.flags) && (mesh.flags & 1)) { // Auto-remove devices parent.db.Remove(nodeid); // Remove node with that id parent.db.Remove('nt' + nodeid); // Remove notes parent.db.Remove('lc' + nodeid); // Remove last connect time diff --git a/public/styles/style.css b/public/styles/style.css index 42a54a08..1a14d8ec 100644 --- a/public/styles/style.css +++ b/public/styles/style.css @@ -3217,3 +3217,12 @@ a { .night .thermalSensor { color: #000; } + +.desktopButtons { + padding-top: 2px; +} + + .night .desktopButtons { + filter: invert(60%); + -webkit-filter: invert(60%); + } \ No newline at end of file diff --git a/views/default.handlebars b/views/default.handlebars index df3fcbdf..d66c4454 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -668,19 +668,19 @@       - - - - - - - - - - - - - + + + + + + + + + + + + +