fix(dashboard): fix class edit page hang and move session notify action to class edit page

The class edit page hung/looped because ClassSessionsSection.vue still
referenced a removed todayJalali() helper in the template, which threw a
render error on every reactive update. Switch both usages to the
getTodayJalali() composable function.

Also remove the duplicate "اطلاع‌رسانی برگزاری جلسه" notify button/dialog
from SessionListView.vue since the same action already exists per-session
inside the class edit page.
This commit is contained in:
2026-08-21 23:43:55 +03:30
parent 0201e81571
commit 2d124eb0eb
2 changed files with 2 additions and 73 deletions
@@ -232,7 +232,7 @@
<div v-for="(session, index) in manualSessions" :key="index" class="grid align-items-center mb-2 p-2 border-round surface-ground">
<div class="col-12 sm:col-1 text-center font-bold">#{{ toPersianDigits(index + 1) }}</div>
<div class="col-12 sm:col-3">
<InputText v-model="session.date" :placeholder="`تاریخ (${todayJalali()})`" class="w-full text-sm" />
<InputText v-model="session.date" :placeholder="`تاریخ (${getTodayJalali()})`" class="w-full text-sm" />
</div>
<div class="col-6 sm:col-2">
<InputText v-model="session.startTime" placeholder="ساعت شروع" class="w-full text-sm" dir="ltr" />
@@ -261,7 +261,7 @@
label="افزودن ردیف"
icon="pi pi-plus"
text
@click="manualSessions.push({ date: todayJalali(), startTime: '19:00', endTime: '20:30', topic: '' })"
@click="manualSessions.push({ date: getTodayJalali(), startTime: '19:00', endTime: '20:30', topic: '' })"
/>
<Button label="ثبت جلسات" icon="pi pi-save" severity="success" :loading="isSaving" @click="submitManualSessions" />
</div>