aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/item_handlers/PictureViewer.vue
diff options
context:
space:
mode:
authorpacien2022-11-06 20:23:11 +0100
committerGitHub2022-11-06 20:23:11 +0100
commitbb3b0eae37a7214a3a4a6a1e4354e6f082adf15e (patch)
tree2e5436e819f8e93a1115a8142594ca80fd507bc1 /viewer/src/views/item_handlers/PictureViewer.vue
parentf864eeca506331c1dee2cd3f5f0df4fe806f303a (diff)
parentcfbff75f78963e3d24326f731590e78a4d719e9e (diff)
downloadldgallery-bb3b0eae37a7214a3a4a6a1e4354e6f082adf15e.tar.gz
Merge pull request #347 from ldgallery/p_viewer_download_button
viewer/command: add item download button
Diffstat (limited to 'viewer/src/views/item_handlers/PictureViewer.vue')
-rw-r--r--viewer/src/views/item_handlers/PictureViewer.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/viewer/src/views/item_handlers/PictureViewer.vue b/viewer/src/views/item_handlers/PictureViewer.vue
index 10055fd..74b978f 100644
--- a/viewer/src/views/item_handlers/PictureViewer.vue
+++ b/viewer/src/views/item_handlers/PictureViewer.vue
@@ -46,7 +46,7 @@ import { useLdZoom } from '@/services/ui/ldZoom';
46import { useUiStore } from '@/store/uiStore'; 46import { useUiStore } from '@/store/uiStore';
47import { unrefElement, VueInstance } from '@vueuse/core'; 47import { unrefElement, VueInstance } from '@vueuse/core';
48import { createToast } from 'mosha-vue-toastify'; 48import { createToast } from 'mosha-vue-toastify';
49import { CSSProperties, onMounted, onUnmounted, PropType, ref } from 'vue'; 49import { CSSProperties, onMounted, onUnmounted, PropType, ref, toRef } from 'vue';
50import { useI18n } from 'vue-i18n'; 50import { useI18n } from 'vue-i18n';
51 51
52const props = defineProps({ 52const props = defineProps({
@@ -63,7 +63,7 @@ const loader = ref(false);
63const containerElement = ref<HTMLDivElement>(); 63const containerElement = ref<HTMLDivElement>();
64const imageElement = ref<VueInstance>(); 64const imageElement = ref<VueInstance>();
65 65
66const { itemResourceUrl, thumbnailResourceUrl } = useItemResource(props.item); 66const { itemResourceUrl, thumbnailResourceUrl } = useItemResource(toRef(props, 'item'));
67 67
68onMounted(() => { 68onMounted(() => {
69 generateSlowLoadingStyle(); 69 generateSlowLoadingStyle();