+
(propositions[rawTag] = (propositions[rawTag] ?? 0) + 1));
} else {
// Tags count from the whole gallery
- Object.entries(this.$galleryStore.tags)
- .forEach(entry => (propositions[entry[0]] = entry[1].items.length));
+ Object.entries(this.$galleryStore.tags).forEach(entry => (propositions[entry[0]] = entry[1].items.length));
}
-
+
return Object.entries(propositions)
- .sort((a,b) => b[1] - a[1])
- .map(entry => ({rawTag: entry[0], count: entry[1]}));
+ .sort((a, b) => b[1] - a[1])
+ .map(entry => ({ rawTag: entry[0], count: entry[1] }));
}
extractDistinctItems(currentTags: Tag.Search[]): Gallery.Item[] {
@@ -79,12 +78,13 @@ export default class LdTagInput extends Vue {
diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue
index 7c9981f..ff354c6 100644
--- a/viewer/src/components/LdTagInput.vue
+++ b/viewer/src/components/LdTagInput.vue
@@ -27,7 +27,6 @@
:data="filteredTags"
field="display"
type="is-black"
- icon="tag"
size="is-medium"
class="panelTagInput"
@typing="searchTags"
--
cgit v1.2.3