diff options
author | pacien | 2022-10-30 17:40:33 +0100 |
---|---|---|
committer | pacien | 2022-10-30 21:15:01 +0100 |
commit | 12eb302bcc93405f81b676b1a29a9731a5fec9be (patch) | |
tree | a99329c14eda80e6262464bd6bb9c570e85b8941 /viewer/src/views/layout/top/LayoutTop.vue | |
parent | f864eeca506331c1dee2cd3f5f0df4fe806f303a (diff) | |
download | ldgallery-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.vue | 5 |
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" |