From 35456c6183c199b23ded85838414eb28a6d4b60f Mon Sep 17 00:00:00 2001
From: pacien
Date: Mon, 4 May 2020 00:11:31 +0200
Subject: viewer/LdDownload: add generic file download handler

GitHub: closes #209
---
 viewer/src/views/GalleryNavigation.vue | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

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

diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue
index 08c8218..2e40409 100644
--- a/viewer/src/views/GalleryNavigation.vue
+++ b/viewer/src/views/GalleryNavigation.vue
@@ -65,10 +65,7 @@ export default class GalleryNavigation extends Vue {
         return { component: "ld-picture", properties: { picture: this.$galleryStore.currentItem } };
 
       default:
-        return {
-          component: "ld-error",
-          properties: { icon: "file", message: this.$t("gallery.unknown-type") }
-        };
+        return { component: "ld-download", properties: { item: this.$galleryStore.currentItem } };
     }
   }
 }
-- 
cgit v1.2.3

