Skip to content

Commit

Permalink
add windows drive status
Browse files Browse the repository at this point in the history
Signed-off-by: si458 <[email protected]>
  • Loading branch information
si458 committed Jan 4, 2024
1 parent 45722c7 commit 41510f3
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
Original file line number Diff line number Diff line change
Expand Up @@ -6129,6 +6129,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
Original file line number Diff line number Diff line change
Expand Up @@ -11942,6 +11942,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 41510f3

Please sign in to comment.