feat: show avatar and full name in team overview
This commit is contained in:
parent
03936c0403
commit
b80f070431
@ -49,9 +49,11 @@ const displayName = computed(() => getDisplayName(props.user))
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.user {
|
.user {
|
||||||
margin: .5rem;
|
margin: .5rem;
|
||||||
|
display: flex;
|
||||||
|
justify-items: center;
|
||||||
|
|
||||||
&.is-inline {
|
&.is-inline {
|
||||||
display: inline;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -73,7 +73,11 @@
|
|||||||
:search-results="foundUsers"
|
:search-results="foundUsers"
|
||||||
label="username"
|
label="username"
|
||||||
v-model="newMember"
|
v-model="newMember"
|
||||||
/>
|
>
|
||||||
|
<template #searchResult="{option: user}">
|
||||||
|
<User :avatar-size="24" :user="user" class="m-0"/>
|
||||||
|
</template>
|
||||||
|
</multiselect>
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<x-button @click="addUser" icon="plus">
|
<x-button @click="addUser" icon="plus">
|
||||||
@ -88,7 +92,9 @@
|
|||||||
<table class="table has-actions is-striped is-hoverable is-fullwidth">
|
<table class="table has-actions is-striped is-hoverable is-fullwidth">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr :key="m.id" v-for="m in team?.members">
|
<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>
|
<td>
|
||||||
<template v-if="m.id === userInfo.id">
|
<template v-if="m.id === userInfo.id">
|
||||||
<b class="is-success">You</b>
|
<b class="is-success">You</b>
|
||||||
@ -185,6 +191,7 @@ import {useRoute, useRouter} from 'vue-router'
|
|||||||
|
|
||||||
import Editor from '@/components/input/AsyncEditor'
|
import Editor from '@/components/input/AsyncEditor'
|
||||||
import Multiselect from '@/components/input/multiselect.vue'
|
import Multiselect from '@/components/input/multiselect.vue'
|
||||||
|
import User from '@/components/misc/user.vue'
|
||||||
|
|
||||||
import TeamService from '@/services/team'
|
import TeamService from '@/services/team'
|
||||||
import TeamMemberService from '@/services/teamMember'
|
import TeamMemberService from '@/services/teamMember'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user