Display role tags

This commit is contained in:
Angelina Filippova 2019-10-04 18:49:03 +03:00
parent 2d52fbdfcb
commit df26ac0858

View file

@ -32,8 +32,12 @@
<tr class="el-table__row">
<td>{{ $t('userProfile.roles') }}</td>
<td>
<el-tag v-if="user.roles.moderator" class="user-profile-tag"/>
<el-tag v-if="user.roles.admin" class="user-profile-tag"/>
<el-tag v-if="user.roles.admin" class="user-profile-tag">
{{ $t('users.admin') }}
</el-tag>
<el-tag v-if="user.roles.moderator" class="user-profile-tag">
{{ $t('users.moderator') }}
</el-tag>
<span v-if="!user.roles.moderator && !user.roles.admin"></span>
</td>
</tr>