add frontend bitlocker

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>

Simon Smith committed Oct 3, 2023 at 12:19 UTC 55f16ab0ac32a1fef56076279df57fc90b195036
1 file changed +15
views/default.handlebars
+15
@@ -7258,6 +7258,21 @@
7258 x += addDeviceAttribute("Antivirus", y.join('<br />'));
7259 }
7260
7261 + // Volumes and Bitlocker
7262 + if (node.volumes){
7263 + var bitlocker = [];
7264 + for (var i in node.volumes) {
7265 + if (typeof node.volumes[i].protectionStatus !== 'undefined' && node.volumes[i].protectionStatus == 'On'){
7266 + bitlocker.push(i + ' - <span style=color:green>' + node.volumes[i].volumeStatus + '</span>');
7267 + }else if (typeof node.volumes[i].protectionStatus !== 'undefined'){
7268 + bitlocker.push(i + ' - <span style=color:red>' + node.volumes[i].volumeStatus + '</span>');
7269 + }
7270 + }
7271 + if(bitlocker.length > 0){
7272 + x += addDeviceAttribute("BitLocker", bitlocker.join(', '));
7273 + }
7274 + }
7275 +
7276 // Active Users
7277 if (node.users && node.conn && (node.users.length > 0) && (node.conn & 1)) { x += addDeviceAttribute(((node.users.length > 1)?"Active Users":"Active User"), EscapeHtml(node.users.join(', '))); }
7278