aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/tools.ts
diff options
context:
space:
mode:
authorZero~Informatique2020-01-31 07:59:58 +0100
committerZero~Informatique2020-01-31 08:01:18 +0100
commit63e7ef894755deef318d9dcb129a94d34f33bdf2 (patch)
tree719204705226e5561c53ddbb4448f0447a75a1bb /viewer/src/tools.ts
parent1e0b65a0a4556810ad4a7acac764a57a7daf8cf0 (diff)
downloadldgallery-63e7ef894755deef318d9dcb129a94d34f33bdf2.tar.gz
viewer: unknown types now show a question mark icon instead of a folder icon. this is unified with the breadcrumb
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