From f5cf3d9b684984096f8b720a5db60b952e33537f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Tue, 16 Apr 2019 01:16:31 +0200 Subject: [PATCH] Use slugs instead of names for mentions --- webapp/components/ContributionForm/index.vue | 3 +-- webapp/components/Editor/index.vue | 6 +++--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/webapp/components/ContributionForm/index.vue b/webapp/components/ContributionForm/index.vue index 231c94d8d..6dc74f104 100644 --- a/webapp/components/ContributionForm/index.vue +++ b/webapp/components/ContributionForm/index.vue @@ -132,9 +132,8 @@ export default { User: { query() { return gql(`{ - User(orderBy: name_asc) { + User(orderBy: slug_asc) { id - name slug } }`) diff --git a/webapp/components/Editor/index.vue b/webapp/components/Editor/index.vue index 270c20840..5636c3714 100644 --- a/webapp/components/Editor/index.vue +++ b/webapp/components/Editor/index.vue @@ -13,7 +13,7 @@ :class="{ 'is-selected': navigatedUserIndex === index }" @click="selectUser(user)" > - {{ user.name }} + @{{ user.slug }}