mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
refactor: do not show size for Dir (#447)
This commit is contained in:
@@ -477,6 +477,8 @@ function addPath(file, index) {
|
|||||||
${actionDelete}
|
${actionDelete}
|
||||||
${actionEdit}
|
${actionEdit}
|
||||||
</td>`;
|
</td>`;
|
||||||
|
|
||||||
|
let sizeDisplay = isDir ? "" : formatSize(file.size).join(" ");
|
||||||
|
|
||||||
$pathsTableBody.insertAdjacentHTML("beforeend", `
|
$pathsTableBody.insertAdjacentHTML("beforeend", `
|
||||||
<tr id="addPath${index}">
|
<tr id="addPath${index}">
|
||||||
@@ -487,7 +489,7 @@ function addPath(file, index) {
|
|||||||
<a href="${url}" ${isDir ? "" : `target="_blank"`}>${encodedName}</a>
|
<a href="${url}" ${isDir ? "" : `target="_blank"`}>${encodedName}</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="cell-mtime">${formatMtime(file.mtime)}</td>
|
<td class="cell-mtime">${formatMtime(file.mtime)}</td>
|
||||||
<td class="cell-size">${formatSize(file.size).join(" ")}</td>
|
<td class="cell-size">${sizeDisplay}</td>
|
||||||
${actionCell}
|
${actionCell}
|
||||||
</tr>`);
|
</tr>`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user