Skip to content

Commit

Permalink
add windows drive status (#5663)
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <simonsmith5521@gmail.com>
  • Loading branch information
si458 committed Jan 4, 2024
1 parent e4001e6 commit c48447d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions views/default-mobile.handlebars
Expand Up @@ -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 += '</div>';
}
}
Expand Down
4 changes: 4 additions & 0 deletions views/default.handlebars
Expand Up @@ -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 += '</div>';
}
}
Expand Down

0 comments on commit c48447d

Please sign in to comment.