Add shared folder icon

This commit is contained in:
Pixeldrain-Server committed 2023-04-19 00:04:06 +02:00
1 parent 971a0fe539
commit 5803a30b6b
4 files changed
+15 -3

No files matched your search

@@ -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) {
@@ -8,7 +8,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) {