fix: admin users
Deploy banu-front / deploy (push) Failing after 16s

This commit is contained in:
sajjadtalkhabi
2026-06-10 20:55:54 +03:30
parent b8ccbcc030
commit b9fa65b84f
51 changed files with 373 additions and 255 deletions
@@ -40,11 +40,14 @@
<div class="user-details__grid">
<LineInfoBlock
title="تاریخ تولد"
:numeric-desc="user.faBirthDate || formatJalaaliDate(user.birthDate) || '—'"
:numeric-desc="formatJalaaliDate(user.birthday) || '—'"
/>
<LineInfoBlock title="شماره تماس" :numeric-desc="user.phoneNumber || '—'" />
<LineInfoBlock title="شماره تماس" :numeric-desc="user.phone || '—'" />
<LineInfoBlock title="کد ملی" :numeric-desc="user.nationalCode || '—'" />
<LineInfoBlock title="وضعیت تاهل" :desc="MARITAL_STATUS[user.maritalStatus] || '—'" />
<LineInfoBlock
title="وضعیت تاهل"
:desc="MARITAL_STATUS[user.marriageStatus] || '—'"
/>
<LineInfoBlock title="جنسیت" :desc="GENDER[user.gender] || '—'" />
<LineInfoBlock title="استان" :desc="user?.province?.name || '—'" />
<LineInfoBlock title="شهر" :desc="user?.city?.name || '—'" />
@@ -122,9 +125,7 @@ const { data: user, isLoading } = useAdminUserQuery(userId, {
enabled: () => !!userId.value,
})
const fullName = computed(() =>
`${user.value?.firstName || ''} ${user.value?.lastName || ''}`.trim()
)
const fullName = computed(() => `${user.value?.name || ''}`.trim())
const roleName = computed(() => {
const first = user.value?.roles?.[0]