From c48447d3e6d256aed900654cf08e6fa167aed81c Mon Sep 17 00:00:00 2001 From: Simon Smith Date: Thu, 4 Jan 2024 02:18:14 +0000 Subject: [PATCH] add windows drive status (#5663) Signed-off-by: si458 --- views/default-mobile.handlebars | 4 ++++ views/default.handlebars | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index ce8fd298..142a3952 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -6137,6 +6137,10 @@ if (typeof m.Size == 'number') { x += addDetailItem("Capacity", format("{0} Mb", Math.floor(m.Size / 1024 / 1024)), s); } if (typeof m.Size == 'string') { x += addDetailItem("Capacity", EscapeHtml(m.Size), s); } } + if(hardware.windows && hardware.windows.drives && m.Model){ + const foundObject = hardware.windows.drives.find(obj => obj['Model'] === m.Model); + if(foundObject) x += addDetailItem("Status", EscapeHtml(foundObject.Status), s); + } x += ''; } } diff --git a/views/default.handlebars b/views/default.handlebars index 34b3cd24..2f68912d 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -11950,6 +11950,10 @@ if (typeof m.Size == 'number') { x += addDetailItem("Capacity", format("{0} Mb", Math.floor(m.Size / 1024 / 1024)), s); } if (typeof m.Size == 'string') { x += addDetailItem("Capacity", EscapeHtml(m.Size), s); } } + if(hardware.windows && hardware.windows.drives && m.Model){ + const foundObject = hardware.windows.drives.find(obj => obj['Model'] === m.Model); + if(foundObject) x += addDetailItem("Status", EscapeHtml(foundObject.Status), s); + } x += ''; } }