aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/TopBreadcrumb.vue
diff options
context:
space:
mode:
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>