fix: added UserAvatar component
This commit is contained in:
parent
4a0216f180
commit
cd118cf08c
21
frontend/src/components/UserAvatar.vue
Normal file
21
frontend/src/components/UserAvatar.vue
Normal file
@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<Avatar
|
||||
v-if="user"
|
||||
:label="getUser(user).full_name"
|
||||
:image="getUser(user).user_image"
|
||||
v-bind="$attrs"
|
||||
/>
|
||||
</template>
|
||||
<script setup>
|
||||
import { Avatar } from 'frappe-ui'
|
||||
import { usersStore } from '@/stores/users'
|
||||
|
||||
const props = defineProps({
|
||||
user: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
})
|
||||
|
||||
const { getUser } = usersStore()
|
||||
</script>
|
||||
Loading…
x
Reference in New Issue
Block a user