draw SharedFolder as folder

This commit is contained in:
dcore94 2023-10-27 15:46:10 +02:00
parent 00d53aed50
commit 28d609a011
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ class D4SStorageTree extends D4SStorageHtmlElement {
if (parentId) {
li.setAttribute(D4SStorageTree.parentid_attr, parentId);
}
const icon = type.includes('FolderItem') ? "folder.svg" : "file-earmark.svg"
const icon = type.includes('FolderItem') || type.inlcudes("SharedFolder")? "folder.svg" : "file-earmark.svg"
li.innerHTML = `
<img class="px-1" src="${this.srcBaseURL}/img/${icon}"</img>
<span>${label}</span>