Fix #869: broken user admin for users with non-digit or letters in their username

This commit is contained in:
Eliot Berriot 2019-06-27 14:50:56 +02:00
parent cbe496e47b
commit dc5db3a0c1
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 10 additions and 2 deletions

View file

@ -45,7 +45,8 @@
</template>
<template slot="row-cells" slot-scope="scope">
<td>
<router-link :to="{name: 'manage.moderation.accounts.detail', params: {id: scope.obj.full_username }}">{{ scope.obj.username }}</router-link>
<router-link v-if="scope.obj.actor" :to="{name: 'manage.moderation.accounts.detail', params: {id: scope.obj.actor.full_username }}">{{ scope.obj.username }}</router-link>
<router-link v-else :to="{name: 'manage.moderation.accounts.detail', params: {id: scope.obj.full_username }}">{{ scope.obj.username }}</router-link>
</td>
<td>
<span>{{ scope.obj.email }}</span>