mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
feat: webui displays subdirectory items (#457)
This commit is contained in:
@@ -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}">
|
||||
|
||||
Reference in New Issue
Block a user