feat: webui displays subdirectory items (#457)

This commit is contained in:
sigoden
2024-09-25 22:19:25 +08:00
committed by GitHub
parent 2cf6d39032
commit bb5a5564b4
2 changed files with 16 additions and 21 deletions

View File

@@ -478,7 +478,7 @@ function addPath(file, index) {
${actionEdit}
</td>`;
let sizeDisplay = isDir ? "" : formatSize(file.size).join(" ");
let sizeDisplay = isDir ? `${file.size} ${file.size === 1 ? "item" : "items"}` : formatSize(file.size).join(" ");
$pathsTableBody.insertAdjacentHTML("beforeend", `
<tr id="addPath${index}">