aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/views/PanelLeft.vue
diff options
context:
space:
mode:
authorZero~Informatique2020-06-19 22:12:03 +0200
committerZero~Informatique2020-06-19 22:12:03 +0200
commit69dc0d20706ed41e5ecdbb77515066d8a7d7703b (patch)
tree8b69fcb1d4a96290134980e75281563f8b4c271e /viewer/src/views/PanelLeft.vue
parenta053076d692be5e3698fe1a2c071d077cb4b6b73 (diff)
downloadldgallery-69dc0d20706ed41e5ecdbb77515066d8a7d7703b.tar.gz
viewer: code update (no functional change)
Types { [x: T]: R } updated to Record<T, R> Methods in template updated to getters (computed in VueJS), which are reactive and cached Code formatting
Diffstat (limited to 'viewer/src/views/PanelLeft.vue')
-rw-r--r--viewer/src/views/PanelLeft.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/viewer/src/views/PanelLeft.vue b/viewer/src/views/PanelLeft.vue
index e3821a8..1d49648 100644
--- a/viewer/src/views/PanelLeft.vue
+++ b/viewer/src/views/PanelLeft.vue
@@ -34,7 +34,7 @@
34 :show-category="$galleryStore.tagsCategories.length > 1" 34 :show-category="$galleryStore.tagsCategories.length > 1"
35 :search-filters.sync="searchFilters" 35 :search-filters.sync="searchFilters"
36 :tags-index="category.index" 36 :tags-index="category.index"
37 :current-tags="currentTags()" 37 :current-tags="currentTags"
38 /> 38 />
39 </div> 39 </div>
40 </div> 40 </div>
@@ -72,7 +72,7 @@ export default class PanelLeft extends Vue {
72 return query; 72 return query;
73 } 73 }
74 74
75 currentTags() { 75 get currentTags() {
76 return this.$galleryStore.currentItem?.tags ?? []; 76 return this.$galleryStore.currentItem?.tags ?? [];
77 } 77 }
78 78