feat: show avatar and full name in team overview
continuous-integration/drone/push Build is failing Details

This commit is contained in:
kolaente 2023-04-25 18:32:31 +02:00
parent 03936c0403
commit b80f070431
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 12 additions and 3 deletions

View File

@ -49,9 +49,11 @@ const displayName = computed(() => getDisplayName(props.user))
<style lang="scss" scoped>
.user {
margin: .5rem;
display: flex;
justify-items: center;
&.is-inline {
display: inline;
display: inline-flex;
}
}

View File

@ -73,7 +73,11 @@
:search-results="foundUsers"
label="username"
v-model="newMember"
/>
>
<template #searchResult="{option: user}">
<User :avatar-size="24" :user="user" class="m-0"/>
</template>
</multiselect>
</div>
<div class="control">
<x-button @click="addUser" icon="plus">
@ -88,7 +92,9 @@
<table class="table has-actions is-striped is-hoverable is-fullwidth">
<tbody>
<tr :key="m.id" v-for="m in team?.members">
<td>{{ getDisplayName(m) }}</td>
<td>
<User :avatar-size="24" :user="m" class="m-0"/>
</td>
<td>
<template v-if="m.id === userInfo.id">
<b class="is-success">You</b>
@ -185,6 +191,7 @@ import {useRoute, useRouter} from 'vue-router'
import Editor from '@/components/input/AsyncEditor'
import Multiselect from '@/components/input/multiselect.vue'
import User from '@/components/misc/user.vue'
import TeamService from '@/services/team'
import TeamMemberService from '@/services/teamMember'