From 55f16ab0ac32a1fef56076279df57fc90b195036 Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Tue, 3 Oct 2023 12:19:11 +0000 Subject: [PATCH] add frontend bitlocker Signed-off-by: Simon Smith --- views/default.handlebars | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/views/default.handlebars b/views/default.handlebars index 4d5a609a..ecb1af25 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -7258,6 +7258,21 @@ x += addDeviceAttribute("Antivirus", y.join('
')); } + // Volumes and Bitlocker + if (node.volumes){ + var bitlocker = []; + for (var i in node.volumes) { + if (typeof node.volumes[i].protectionStatus !== 'undefined' && node.volumes[i].protectionStatus == 'On'){ + bitlocker.push(i + ' - ' + node.volumes[i].volumeStatus + ''); + }else if (typeof node.volumes[i].protectionStatus !== 'undefined'){ + bitlocker.push(i + ' - ' + node.volumes[i].volumeStatus + ''); + } + } + if(bitlocker.length > 0){ + x += addDeviceAttribute("BitLocker", bitlocker.join(', ')); + } + } + // Active Users 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(', '))); }