Browse Source

fix(nc-gui): PR review changes #2131

pull/7431/head
Ramesh Mane 11 months ago
parent
commit
c00a76a1cc
  1. 8
      packages/nc-gui/components/general/UserIcon.vue

8
packages/nc-gui/components/general/UserIcon.vue

@ -8,15 +8,15 @@ const props = withDefaults(
email?: string
}>(),
{
size: 'medium',
name: '',
email: '',
},
)
const size = computed(() => props.size || 'medium')
const { size, email } = toRefs(props)
const displayName = computed(() => props.name?.trim() ?? '')
const email = computed(() => props?.email ?? '')
const displayName = computed(() => props.name.trim())
const backgroundColor = computed(() => {
// in comments we need to generate user icon from email

Loading…
Cancel
Save