Add shared folder icon

This commit is contained in:
2023-04-19 00:04:06 +02:00
parent 971a0fe539
commit 5803a30b6b
4 changed files with 15 additions and 3 deletions

View File

@@ -7,7 +7,12 @@ export let state
const node_icon = node => {
if (node.type === "dir") {
return "/res/img/mime/folder.png"
// Folders with an ID are publically shared, use the shared folder icon
if (node.id) {
return "/res/img/mime/folder-remote.png"
} else {
return "/res/img/mime/folder.png"
}
}
switch (node.file_type) {