fix(sharing): show user display name and avatar when displaying search results
Resolves https://community.vikunja.io/t/autogenerated-username-using-google-openid/2183/12
This commit is contained in:
parent
6f366d4907
commit
bf5088e546
@ -16,7 +16,22 @@
|
|||||||
:search-results="found"
|
:search-results="found"
|
||||||
:label="searchLabel"
|
:label="searchLabel"
|
||||||
@search="find"
|
@search="find"
|
||||||
|
>
|
||||||
|
<template #searchResult="{option: result}">
|
||||||
|
<User
|
||||||
|
v-if="shareType === 'user'"
|
||||||
|
:avatar-size="24"
|
||||||
|
:show-username="true"
|
||||||
|
:user="result"
|
||||||
/>
|
/>
|
||||||
|
<span
|
||||||
|
v-else
|
||||||
|
class="search-result"
|
||||||
|
>
|
||||||
|
{{ result.name }}
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</Multiselect>
|
||||||
</p>
|
</p>
|
||||||
<p class="control">
|
<p class="control">
|
||||||
<x-button @click="add()">
|
<x-button @click="add()">
|
||||||
@ -173,6 +188,7 @@ import Nothing from '@/components/misc/nothing.vue'
|
|||||||
import {success} from '@/message'
|
import {success} from '@/message'
|
||||||
import {useAuthStore} from '@/stores/auth'
|
import {useAuthStore} from '@/stores/auth'
|
||||||
import {useConfigStore} from '@/stores/config'
|
import {useConfigStore} from '@/stores/config'
|
||||||
|
import User from '@/components/misc/user.vue'
|
||||||
|
|
||||||
// FIXME: I think this whole thing can now only manage user/team sharing for projects? Maybe remove a little generalization?
|
// FIXME: I think this whole thing can now only manage user/team sharing for projects? Maybe remove a little generalization?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user