draw SharedFolder as folder
This commit is contained in:
parent
00d53aed50
commit
28d609a011
|
@ -434,7 +434,7 @@ class D4SStorageTree extends D4SStorageHtmlElement {
|
||||||
if (parentId) {
|
if (parentId) {
|
||||||
li.setAttribute(D4SStorageTree.parentid_attr, 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 = `
|
li.innerHTML = `
|
||||||
<img class="px-1" src="${this.srcBaseURL}/img/${icon}"</img>
|
<img class="px-1" src="${this.srcBaseURL}/img/${icon}"</img>
|
||||||
<span>${label}</span>
|
<span>${label}</span>
|
||||||
|
|
Loading…
Reference in New Issue