diff options
Diffstat (limited to 'viewer/src/views/TopBreadcrumb.vue')
-rw-r--r-- | viewer/src/views/TopBreadcrumb.vue | 9 |
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"> |
33 | import { Component, Vue } from "vue-property-decorator"; | 33 | import { Component, Vue } from "vue-property-decorator"; |
34 | import Tools from "@/tools"; | ||
34 | 35 | ||
35 | @Component | 36 | @Component |
36 | export default class TopBreadcrumb extends Vue { | 37 | export 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> |