diff options
author | pacien | 2021-06-26 18:08:14 +0200 |
---|---|---|
committer | GitHub | 2021-06-26 18:08:14 +0200 |
commit | 153615a69e463ebb859cded5cfe8fb27acd6e722 (patch) | |
tree | 0ea6be38d6e94ba9b72e7ff2d78dba015e053537 /viewer | |
parent | 005ea7957a75e53b443bbc5a596909df457343b8 (diff) | |
parent | 6b125a393d8ce10bfd9273c24ea1615b335abeba (diff) | |
download | ldgallery-153615a69e463ebb859cded5cfe8fb27acd6e722.tar.gz |
Merge pull request #290 from ldgallery/pacien-20210625-trivial-fixes
Diffstat (limited to 'viewer')
-rw-r--r-- | viewer/public/index.html | 2 | ||||
-rw-r--r-- | viewer/src/views/GalleryNavigation.vue | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/viewer/public/index.html b/viewer/public/index.html index 4f2767c..c3ff247 100644 --- a/viewer/public/index.html +++ b/viewer/public/index.html | |||
@@ -25,7 +25,7 @@ | |||
25 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> | 25 | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
26 | <meta name="mobile-web-app-capable" content="yes"> | 26 | <meta name="mobile-web-app-capable" content="yes"> |
27 | <meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0"> | 27 | <meta name="viewport" content="user-scalable=no,width=device-width,initial-scale=1.0"> |
28 | <meta name="generator" content="ldgallery"> | 28 | <meta name="generator" content="ldgallery, software distributed under the terms of the GNU Affero General Public License v3.0"> |
29 | 29 | ||
30 | <link rel="manifest" href="manifest.json"> | 30 | <link rel="manifest" href="manifest.json"> |
31 | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> | 31 | <link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
diff --git a/viewer/src/views/GalleryNavigation.vue b/viewer/src/views/GalleryNavigation.vue index fd1f19a..69198f6 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="componentKey" :item="$galleryStore.currentItem" /> |
25 | </div> | 25 | </div> |
26 | </template> | 26 | </template> |
27 | 27 | ||
@@ -66,6 +66,10 @@ export default class GalleryNavigation extends Vue { | |||
66 | return this.COMPONENT_BY_TYPE[this.$galleryStore.currentItem?.properties.type ?? ItemType.OTHER]; | 66 | return this.COMPONENT_BY_TYPE[this.$galleryStore.currentItem?.properties.type ?? ItemType.OTHER]; |
67 | } | 67 | } |
68 | 68 | ||
69 | get componentKey() { | ||
70 | return this.$galleryStore.currentItem?.path ?? ""; | ||
71 | } | ||
72 | |||
69 | @Watch("path") | 73 | @Watch("path") |
70 | pathChanged() { | 74 | pathChanged() { |
71 | this.$galleryStore.setCurrentPath(this.path); | 75 | this.$galleryStore.setCurrentPath(this.path); |