From 57a9581960e3e30908bb082cc75a8d41704a497e Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 2 Jul 2021 16:46:02 -0700 Subject: [PATCH] Don't show AMT device import when in WAN mode. --- package.json | 19 ++++++++++++++----- views/default.handlebars | 7 ++++++- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index f285139a..02f97c51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "meshcentral", - "version": "0.8.70", + "version": "0.8.71", "keywords": [ "Remote Device Management", "Remote Device Monitoring", @@ -36,6 +36,8 @@ "sample-config-advanced.json" ], "dependencies": { + "archiver": "^4.0.2", + "archiver-zip-encrypted": "^1.0.10", "body-parser": "^1.19.0", "cbor": "~5.2.0", "compression": "^1.7.4", @@ -43,17 +45,24 @@ "express": "^4.17.0", "express-handlebars": "^3.1.0", "express-ws": "^4.0.0", - "html-minifier": "^4.0.0", + "image-size": "^1.0.0", "ipcheck": "^0.1.0", - "jsdom": "^16.6.0", - "minify-js": "0.0.4", + "loadavg-windows": "^1.1.1", "minimist": "^1.2.0", + "mongodb": "^3.6.9", "multiparty": "^4.2.1", "nedb": "^1.8.0", "node-forge": "^0.10.0", + "node-rdpjs-2": "^0.3.5", + "node-windows": "^1.0.0-beta.5", + "otplib": "^10.2.3", + "saslprep": "^1.0.3", + "ssh2": "^1.1.0", + "web-push": "^3.4.5", "ws": "^5.2.0", "xmldom": "^0.5.0", - "yauzl": "^2.10.0" + "yauzl": "^2.10.0", + "yubikeyotp": "^0.2.0" }, "repository": { "type": "git", diff --git a/views/default.handlebars b/views/default.handlebars index 42006231..5402f7dc 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -11121,7 +11121,12 @@ // Display list of devices in this device group count = 0; nodes.sort(deviceSort); - var dllist = (currentMesh.mtype == 1)?' ':''; + var dllist = ''; + if (currentMesh.mtype == 1) { + dllist += ''; + if ((features & 1) == 0) { dllist += ' '; } // Show import only in LAN or Hybrid mode + } + var y = ''; for (var i in nodes) { var node = nodes[i], gray = ((node.conn > 0)?'':' gray');
' + "Devices" + '' + dllist + '