aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/tools.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/tools.ts')
-rw-r--r--viewer/src/tools.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/viewer/src/tools.ts b/viewer/src/tools.ts
index 57a889d..94fdf33 100644
--- a/viewer/src/tools.ts
+++ b/viewer/src/tools.ts
@@ -43,5 +43,17 @@ export default class Tools {
43 ]; 43 ];
44 } 44 }
45 45
46 public static getIcon(item: Gallery.Item): string {
47 if (item.path.length <= 1) return "home";
48 switch (item.properties.type) {
49 case "picture":
50 return "image";
51 case "directory":
52 return "folder";
53 case "other":
54 default:
55 return "question-circle";
56 }
57 }
46 58
47} \ No newline at end of file 59} \ No newline at end of file