fix(web): clear vue-tsc errors blocking push
Type attendance rows, remove unused symbols, and harden list item typing after the Ant settings migration. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -295,6 +295,13 @@ function setRole(userId: string, role: unknown) {
|
||||
};
|
||||
}
|
||||
|
||||
function teamMembersLabel(team: TeamDto) {
|
||||
if (!team.members.length) return 'بدون عضو';
|
||||
return team.members
|
||||
.map((m) => `${m.fullName}${m.role === 'manager' ? ' (سرپرست)' : ''}`)
|
||||
.join('، ');
|
||||
}
|
||||
|
||||
async function saveMembers() {
|
||||
if (!editingId.value) return;
|
||||
saving.value = true;
|
||||
@@ -455,15 +462,7 @@ onMounted(() => {
|
||||
</template>
|
||||
<template #description>
|
||||
<a-typography-text type="secondary">
|
||||
{{ t.description || 'بدون توضیح' }}
|
||||
·
|
||||
{{
|
||||
t.members.length
|
||||
? t.members
|
||||
.map((m) => `${m.fullName}${m.role === 'manager' ? ' (سرپرست)' : ''}`)
|
||||
.join('، ')
|
||||
: 'بدون عضو'
|
||||
}}
|
||||
{{ t.description || 'بدون توضیح' }} · {{ teamMembersLabel(t) }}
|
||||
</a-typography-text>
|
||||
</template>
|
||||
</a-list-item-meta>
|
||||
|
||||
Reference in New Issue
Block a user