summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJonas Sulzer <jonas@violoncello.ch>2019-06-26 14:43:52 +0200
committerJonas Sulzer <jonas@violoncello.ch>2019-06-26 18:18:52 +0200
commit11061e1965bff4e976897f6a01b75ae004dd7b72 (patch)
tree24c269d25064d7e5688ff78ee817f3ed3adfd997 /src
parent04ca8b54f466ce9466906067fba6c1e7d58fd385 (diff)
🐛 FIX: displaying of exact alias maches
Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
Diffstat (limited to 'src')
-rw-r--r--src/components/Search.vue6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/components/Search.vue b/src/components/Search.vue
index a425b3b7..7b425f83 100644
--- a/src/components/Search.vue
+++ b/src/components/Search.vue
@@ -106,6 +106,9 @@ export default {
computed: {
allResults() {
if (this.results.accounts) {
+ if (this.results.accounts.exact) {
+ return [this.results.accounts.exact]
+ }
return this.results.accounts.result
}
return []
@@ -139,6 +142,9 @@ export default {
this.results = response.data.result
this.loading = false
+ if (this.results.accounts.exact !== null) {
+ this.$store.commit('addAccount', { actorId: this.results.accounts.exact.id, data: this.results.accounts.exact })
+ }
this.results.accounts.result.forEach((account) => {
this.$store.commit('addAccount', { actorId: account.id, data: account })
})