diff options
Diffstat (limited to 'viewer/src/components')
-rw-r--r-- | viewer/src/components/LdProposition.vue | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/viewer/src/components/LdProposition.vue b/viewer/src/components/LdProposition.vue index 02f7fe4..a380021 100644 --- a/viewer/src/components/LdProposition.vue +++ b/viewer/src/components/LdProposition.vue | |||
@@ -56,8 +56,10 @@ export default class LdTagInput extends Vue { | |||
56 | .filter(rawTag => !currentTags.find(currentTag => currentTag.tag === rawTag)) | 56 | .filter(rawTag => !currentTags.find(currentTag => currentTag.tag === rawTag)) |
57 | .forEach(rawTag => (propositions[rawTag] = (propositions[rawTag] ?? 0) + 1)); | 57 | .forEach(rawTag => (propositions[rawTag] = (propositions[rawTag] ?? 0) + 1)); |
58 | } else { | 58 | } else { |
59 | // Tags count from the whole gallery | 59 | // Tags count from the current directory |
60 | Object.entries(this.$galleryStore.tags).forEach(entry => (propositions[entry[0]] = entry[1].items.length)); | 60 | this.$galleryStore.currentItem?.tags |
61 | .map(tag => this.$galleryStore.tags[tag]) // FIXME: Folders with the same name are merged in the index | ||
62 | .forEach(tagindex => (propositions[tagindex.tag] = tagindex.items.length)); | ||
61 | } | 63 | } |
62 | 64 | ||
63 | return Object.entries(propositions) | 65 | return Object.entries(propositions) |