refactor: do not show size for Dir (#447)
This commit is contained in:
parent
2c5cc60965
commit
f87c52fda2
1 changed files with 3 additions and 1 deletions
|
@ -478,6 +478,8 @@ function addPath(file, index) {
|
|||
${actionEdit}
|
||||
</td>`;
|
||||
|
||||
let sizeDisplay = isDir ? "" : formatSize(file.size).join(" ");
|
||||
|
||||
$pathsTableBody.insertAdjacentHTML("beforeend", `
|
||||
<tr id="addPath${index}">
|
||||
<td class="path cell-icon">
|
||||
|
@ -487,7 +489,7 @@ function addPath(file, index) {
|
|||
<a href="${url}" ${isDir ? "" : `target="_blank"`}>${encodedName}</a>
|
||||
</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}
|
||||
</tr>`);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue