mirror of
https://github.com/Ylianst/MeshCommander
synced 2025-12-11 05:43:18 +00:00
Improved RPE dialog.
This commit is contained in:
13808
index-new.html
Normal file
13808
index-new.html
Normal file
File diff suppressed because one or more lines are too long
17
index.html
17
index.html
@@ -10316,14 +10316,15 @@
|
|||||||
} else if ((action == 106) || (action == 107)) {
|
} else if ((action == 106) || (action == 107)) {
|
||||||
var x = ("Confirm execution of Intel® Remote Platform Erase?" + '<br>');
|
var x = ("Confirm execution of Intel® Remote Platform Erase?" + '<br>');
|
||||||
x += ('<br><div style=color:red>' + "<b>WARNING:</b> This will wipe data on the remote system." + '</div>');
|
x += ('<br><div style=color:red>' + "<b>WARNING:</b> This will wipe data on the remote system." + '</div>');
|
||||||
var actionTaken = [];
|
var actionTaken = [], platfromEraseSupport = amtPowerBootCapabilities['PlatformErase'];
|
||||||
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 1)) { actionTaken.push("Pyrite Revert"); }
|
if (platfromEraseSupport & (1 << 1)) { actionTaken.push("Pyrite Revert"); }
|
||||||
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 2)) { actionTaken.push("Secure Erase All SSDs"); }
|
if (platfromEraseSupport & (1 << 2)) { actionTaken.push("Secure Erase All SSDs"); }
|
||||||
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 6)) { actionTaken.push("TPM Clear"); }
|
if (platfromEraseSupport & (1 << 6)) { actionTaken.push("TPM Clear"); }
|
||||||
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 25)) { actionTaken.push("Clear BIOS NVM Variables"); }
|
if (platfromEraseSupport & (1 << 25)) { actionTaken.push("Clear BIOS NVM Variables"); }
|
||||||
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 26)) { actionTaken.push("BIOS Reload of Golden Configuration"); }
|
if (platfromEraseSupport & (1 << 26)) { actionTaken.push("BIOS Reload of Golden Configuration"); }
|
||||||
if (amtPowerBootCapabilities['PlatformErase'] & (1 << 31)) { actionTaken.push("CSME Unconfigure"); }
|
if (platfromEraseSupport & (1 << 31)) { actionTaken.push("CSME Unconfigure"); }
|
||||||
if (actionTaken.length > 0) { x += ('<br>' + format("The following actions will be taken: {0}.", actionTaken.join(', '))); }
|
if (actionTaken.length == 1) { x += ('<br>' + format("The following action will be taken:" + '<ul><li>{0}</li></ul>', actionTaken.join('</li><li>'))); }
|
||||||
|
else if (actionTaken.length > 1) { x += ('<br>' + format("The following actions will be taken:" + '<ul><li>{0}</li></ul>', actionTaken.join('</li><li>'))); }
|
||||||
setDialogMode(11, "Power Actions", 3, powerActionDlg, x);
|
setDialogMode(11, "Power Actions", 3, powerActionDlg, x);
|
||||||
// ###BEGIN###{PowerControl-OneClick}
|
// ###BEGIN###{PowerControl-OneClick}
|
||||||
} else if ((action == 999) && (amtversion >= 15)) {
|
} else if ((action == 999) && (amtversion >= 15)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user