AMT manager improvements.
Ylian Saint-Hilaire committed
Oct 18, 2020 at 22:47 UTC
0e23eaa881d0cbc38ede0f3ac931a27d6677030f
2 files changed
+3
-8
amtmanager.js
+2
-1
@@ -948,11 +948,12 @@ module.exports.CreateAmtManager = function(parent) {
948
if (changes == true) {
949
var t = Clone(dev.cira.xxEnvironementDetection);
950
t['DetectionStrings'] = editEnvironmentDetectionTmp;
951
+ dev.cira.envclear = (editEnvironmentDetectionTmp.length == 0);
952
dev.amtstack.Put('AMT_EnvironmentDetectionSettingData', t, function (stack, name, responses, status) {
953
const dev = stack.dev;
954
if (isAmtDeviceValid(dev) == false) return; // Device no longer exists, ignore this request.
955
if (status != 200) { dev.consoleMsg("Failed to set environement detection (" + status + ")."); removeAmtDevice(dev); return; }
955
- dev.consoleMsg("Environment detection set.");
956
+ if (dev.cira.envclear) { dev.consoleMsg("Environment detection cleared."); } else { dev.consoleMsg("Environment detection set."); }
957
devTaskCompleted(dev);
958
}, 0, 1);
959
} else {
views/default.handlebars
+1
-7
@@ -9597,13 +9597,7 @@
9597
x = addHtmlValue("Password*", '<input id=dp20amtpolicypass type=password style=width:230px maxlength=32 onchange=dp20amtValidatePolicy() onkeyup=dp20amtValidatePolicy() autocomplete=off />')
9598
x += addHtmlValue("Password*", '<input id=dp20amtpolicypass2 type=password style=width:230px maxlength=32 onchange=dp20amtValidatePolicy() onkeyup=dp20amtValidatePolicy() autocomplete=off />')
9599
if ((ptype == 2) && (currentMesh.mtype == 2)) { x += addHtmlValue("Password mismatch", '<select id=dp20amtbadpass style=width:230px><option value=0>' + "Do nothing" + '</option><option value=1>' + "Reactivate Intel® AMT" + '</option></select>'); }
9600
- if ((features & 0x400) == 0) {
9601
- if (ptype == 2) {
9602
- x += addHtmlValue('<span title="' + "Client Initiated Remote Access" + '">' + "CIRA" + '</span>', '<select id=dp20amtcira style=width:230px><option value=0>' + "Don't configure" + '</option><option value=1>' + "Don't connect to server" + '</option><option value=2>' + "Connect to server" + '</option></select>');
9603
- } else {
9604
- x += addHtmlValue('<span title="' + "Client Initiated Remote Access" + '">' + "CIRA" + '</span>', '<select id=dp20amtcira style=width:230px><option value=0>' + "Don't configure" + '</option><option value=2>' + "Connect to server" + '</option></select>');
9605
- }
9606
- }
9600
+ if ((features & 0x400) == 0) { x += addHtmlValue('<span title="' + "Client Initiated Remote Access" + '">' + "CIRA" + '</span>', '<select id=dp20amtcira style=width:230px><option value=0>' + "Don't configure" + '</option><option value=1>' + "Don't connect to server" + '</option><option value=2>' + "Connect to server" + '</option></select>'); }
9601
x += '<br/><span style="font-size:10px">' + "* Leave blank to assign a random password to each device." + '</span><br/>';
9602
if (currentMesh.mtype == 2) {
9603
if (ptype == 2) {