aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/layout/top/LayoutTop.vue
diff options
context:
space:
mode:
authorpacien2022-10-30 17:40:33 +0100
committerpacien2022-10-30 21:15:01 +0100
commit12eb302bcc93405f81b676b1a29a9731a5fec9be (patch)
treea99329c14eda80e6262464bd6bb9c570e85b8941 /viewer/src/views/layout/top/LayoutTop.vue
parentf864eeca506331c1dee2cd3f5f0df4fe806f303a (diff)
downloadldgallery-12eb302bcc93405f81b676b1a29a9731a5fec9be.tar.gz
viewer/command: add item download button
This adds a download button which allows the user to save the current item as a file. This is necessary because some item viewers do not expose a download option on their own. The download icon appears together with the other command buttons at the top-left corner of the screen, replacing the listing sorting menu which is only relevant for item lists (directory and search views). GitHub: closes #308
Diffstat (limited to 'viewer/src/views/layout/top/LayoutTop.vue')
-rw-r--r--viewer/src/views/layout/top/LayoutTop.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/viewer/src/views/layout/top/LayoutTop.vue b/viewer/src/views/layout/top/LayoutTop.vue
index b755c42..0362840 100644
--- a/viewer/src/views/layout/top/LayoutTop.vue
+++ b/viewer/src/views/layout/top/LayoutTop.vue
@@ -19,7 +19,10 @@
19 19
20<template> 20<template>
21 <div class="flex"> 21 <div class="flex">
22 <LayoutCommand :current-item-path="galleryStore.currentItemPath" /> 22 <LayoutCommand
23 :current-item-path="galleryStore.currentItemPath"
24 :item="galleryStore.currentItem"
25 />
23 <LayoutBreadcrumb 26 <LayoutBreadcrumb
24 :current-item-path="galleryStore.currentItemPath" 27 :current-item-path="galleryStore.currentItemPath"
25 :search-mode="uiStore.searchMode" 28 :search-mode="uiStore.searchMode"