diff options
author | Zéro~Informatique | 2022-11-06 19:34:26 +0100 |
---|---|---|
committer | Zéro~Informatique | 2022-11-06 19:41:44 +0100 |
commit | cfbff75f78963e3d24326f731590e78a4d719e9e (patch) | |
tree | 2e5436e819f8e93a1115a8142594ca80fd507bc1 /viewer/src/views/layout/top/LayoutTop.vue | |
parent | 12eb302bcc93405f81b676b1a29a9731a5fec9be (diff) | |
download | ldgallery-cfbff75f78963e3d24326f731590e78a4d719e9e.tar.gz |
viewer/command: add item download button
Fixed a reactivity issue with props used in a composition function (useItemResource)
Fixed crash with null items in LayoutTop
Changed how downloadable items are identified: We use the fact they are materialized in the gallery instead of a hardly defined "listing condition". This also simplifies the code.
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 0362840..02c8b7b 100644 --- a/viewer/src/views/layout/top/LayoutTop.vue +++ b/viewer/src/views/layout/top/LayoutTop.vue | |||
@@ -18,7 +18,10 @@ | |||
18 | --> | 18 | --> |
19 | 19 | ||
20 | <template> | 20 | <template> |
21 | <div class="flex"> | 21 | <div |
22 | v-if="galleryStore.currentItem" | ||
23 | class="flex" | ||
24 | > | ||
22 | <LayoutCommand | 25 | <LayoutCommand |
23 | :current-item-path="galleryStore.currentItemPath" | 26 | :current-item-path="galleryStore.currentItemPath" |
24 | :item="galleryStore.currentItem" | 27 | :item="galleryStore.currentItem" |