fix: ui path table show move action (#219)
This commit is contained in:
parent
f8ea41638f
commit
4622c48120
2 changed files with 4 additions and 5 deletions
|
@ -148,7 +148,7 @@ body {
|
||||||
}
|
}
|
||||||
|
|
||||||
.paths-table .cell-actions {
|
.paths-table .cell-actions {
|
||||||
width: 75px;
|
width: 90px;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding-left: 0.6em;
|
padding-left: 0.6em;
|
||||||
}
|
}
|
||||||
|
|
|
@ -379,9 +379,8 @@ function addPath(file, index) {
|
||||||
}
|
}
|
||||||
if (DATA.allow_delete) {
|
if (DATA.allow_delete) {
|
||||||
if (DATA.allow_upload) {
|
if (DATA.allow_upload) {
|
||||||
if (isDir) {
|
|
||||||
actionMove = `<div onclick="movePath(${index})" class="action-btn" id="moveBtn${index}" title="Move to new path">${ICONS.move}</div>`;
|
actionMove = `<div onclick="movePath(${index})" class="action-btn" id="moveBtn${index}" title="Move to new path">${ICONS.move}</div>`;
|
||||||
} else {
|
if (!isDir) {
|
||||||
actionEdit = `<a class="action-btn" title="Edit file" target="_blank" href="${url}?edit">${ICONS.edit}</a>`;
|
actionEdit = `<a class="action-btn" title="Edit file" target="_blank" href="${url}?edit">${ICONS.edit}</a>`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -392,8 +391,8 @@ function addPath(file, index) {
|
||||||
<td class="cell-actions">
|
<td class="cell-actions">
|
||||||
${actionDownload}
|
${actionDownload}
|
||||||
${actionMove}
|
${actionMove}
|
||||||
${actionEdit}
|
|
||||||
${actionDelete}
|
${actionDelete}
|
||||||
|
${actionEdit}
|
||||||
</td>`
|
</td>`
|
||||||
|
|
||||||
$pathsTableBody.insertAdjacentHTML("beforeend", `
|
$pathsTableBody.insertAdjacentHTML("beforeend", `
|
||||||
|
|
Loading…
Reference in a new issue