aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/GalleryNavigation.vue
diff options
context:
space:
mode:
authorpacien2021-06-25 12:09:30 +0200
committerpacien2021-06-25 12:09:37 +0200
commit7bd88b9d462903ae7753b9ef7a3613ebcd9bad45 (patch)
tree5de185c2a37b5268114a1f5eb6c825ad684c1a6c /viewer/src/views/GalleryNavigation.vue
parent06228f6620643ef591eceeb86eb1b10efce69ef0 (diff)
downloadldgallery-7bd88b9d462903ae7753b9ef7a3613ebcd9bad45.tar.gz
viewer/GalleryNavigation: uniquely identify viewer instances by item
This forces viewer components to be re-instantiated on item change. GitHub: fixes #268
Diffstat (limited to 'viewer/src/views/GalleryNavigation.vue')
-rw-r--r--viewer/src/views/GalleryNavigation.vue2
1 files changed, 1 insertions, 1 deletions
diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue
index fd1f19a..c53df66 100644
--- a/viewer/src/views/GalleryNavigation.vue
+++ b/viewer/src/views/GalleryNavigation.vue
@@ -21,7 +21,7 @@
21 <div> 21 <div>
22 <ld-error v-if="isError" icon="folder-open" :message="$t('gallery.unknown-resource')" /> 22 <ld-error v-if="isError" icon="folder-open" :message="$t('gallery.unknown-resource')" />
23 <gallery-search v-else-if="isSearch" :path="path" /> 23 <gallery-search v-else-if="isSearch" :path="path" />
24 <component :is="componentName" v-else :item="$galleryStore.currentItem" /> 24 <component :is="componentName" v-else :key="$galleryStore.currentItem.path" :item="$galleryStore.currentItem" />
25 </div> 25 </div>
26</template> 26</template>
27 27