diff --git a/src/components/Autocomplete.vue b/src/components/Autocomplete.vue index c6879ed0eff944af3ee0d25b9c50ff68d9092029..5ea7c13a3b0fa38c1ca29e1d5a3a60d314472b05 100644 --- a/src/components/Autocomplete.vue +++ b/src/components/Autocomplete.vue @@ -27,8 +27,8 @@ > <template v-slot:item="data"> <span class="search-hit"> - {{data.item.label}} - </span> + {{data.item.label}} + </span> ({{data.item.lang? data.item.lang[1] ? "bm, nn" : {"bob": "bm", "nob": "nn"}[data.item.lang[0]] : 'fritekstsøk'}}) </template> </v-combobox> @@ -90,7 +90,7 @@ this.items = [] this.suggesting = false }, 1) - + } // If blurred else { @@ -127,13 +127,13 @@ }); // whitespace necessary because duplicates aren't allowed in the dropdown - hits.push({q: q, label: q + ' '}) + hits.push({q: q, label: q + ' '}) self.items = hits } - self.loading = false + self.loading = false }) - + }, },