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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user