aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/tools.ts
diff options
context:
space:
mode:
authorNotkea2020-01-31 18:09:33 +0100
committerGitHub2020-01-31 18:09:33 +0100
commit245fee3fe5abdc6ad14513ef6522446aba4c905a (patch)
tree749ec466c404499f19d571834262b87c14f0d0af /viewer/src/tools.ts
parentd94b987463169b254ab69a79ddb58e5beccb0941 (diff)
parentbe8ec3edaed843f08dac3d2bf2f10f7247ef3d3a (diff)
downloadldgallery-245fee3fe5abdc6ad14513ef6522446aba4c905a.tar.gz
Merge pull request #68 from pacien/oz-viewer
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