1
0
forked from test/crm

fix: added UserAvatar component

This commit is contained in:
Shariq Ansari 2023-08-03 21:15:57 +05:30
parent 4a0216f180
commit cd118cf08c

View 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>