From 63e7ef894755deef318d9dcb129a94d34f33bdf2 Mon Sep 17 00:00:00 2001
From: Zero~Informatique
Date: Fri, 31 Jan 2020 07:59:58 +0100
Subject: viewer: unknown types now show a question mark icon instead of a
 folder icon. this is unified with the breadcrumb

---
 viewer/src/views/TopBreadcrumb.vue | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'viewer/src/views/TopBreadcrumb.vue')

diff --git a/viewer/src/views/TopBreadcrumb.vue b/viewer/src/views/TopBreadcrumb.vue
index eb7fdd1..9104b80 100644
--- a/viewer/src/views/TopBreadcrumb.vue
+++ b/viewer/src/views/TopBreadcrumb.vue
@@ -31,17 +31,12 @@
 
 <script lang="ts">
 import { Component, Vue } from "vue-property-decorator";
+import Tools from "@/tools";
 
 @Component
 export default class TopBreadcrumb extends Vue {
   getIcon(item: Gallery.Item) {
-    if (item.path.length <= 1) return "home";
-    switch (item.properties.type) {
-      case "picture":
-        return "image";
-      case "directory":
-        return "folder";
-    }
+    return Tools.getIcon(item);
   }
 }
 </script>
-- 
cgit v1.2.3

