aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/TopBreadcrumb.vue
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/views/TopBreadcrumb.vue
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/views/TopBreadcrumb.vue')
-rw-r--r--viewer/src/views/TopBreadcrumb.vue9
1 files changed, 2 insertions, 7 deletions
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 @@
31 31
32<script lang="ts"> 32<script lang="ts">
33import { Component, Vue } from "vue-property-decorator"; 33import { Component, Vue } from "vue-property-decorator";
34import Tools from "@/tools";
34 35
35@Component 36@Component
36export default class TopBreadcrumb extends Vue { 37export default class TopBreadcrumb extends Vue {
37 getIcon(item: Gallery.Item) { 38 getIcon(item: Gallery.Item) {
38 if (item.path.length <= 1) return "home"; 39 return Tools.getIcon(item);
39 switch (item.properties.type) {
40 case "picture":
41 return "image";
42 case "directory":
43 return "folder";
44 }
45 } 40 }
46} 41}
47</script> 42</script>