|
@@ -14,7 +14,7 @@
|
|
:name="user.name ? user.name : user.username"
|
|
:name="user.name ? user.name : user.username"
|
|
/>
|
|
/>
|
|
<div>
|
|
<div>
|
|
- <div class="name-role-row">
|
|
|
|
|
|
+ <div class="name-row" v-if="user.name">
|
|
<p class="name">{{ user.name }}</p>
|
|
<p class="name">{{ user.name }}</p>
|
|
<span
|
|
<span
|
|
class="role admin"
|
|
class="role admin"
|
|
@@ -22,7 +22,14 @@
|
|
>admin</span
|
|
>admin</span
|
|
>
|
|
>
|
|
</div>
|
|
</div>
|
|
- <h2 class="username">@{{ user.username }}</h2>
|
|
|
|
|
|
+ <div class="username-row">
|
|
|
|
+ <h2 class="username">@{{ user.username }}</h2>
|
|
|
|
+ <span
|
|
|
|
+ class="role admin"
|
|
|
|
+ v-if="user.role === 'admin' && !user.name"
|
|
|
|
+ >admin</span
|
|
|
|
+ >
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
@@ -236,7 +243,8 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- .name-role-row {
|
|
|
|
|
|
+ .name-row,
|
|
|
|
+ .username-row {
|
|
display: flex;
|
|
display: flex;
|
|
flex-direction: row;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
align-items: center;
|