mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-23 19:37:23 +08:00
fix filament resource notify
This commit is contained in:
@@ -81,10 +81,10 @@ class ViewExamUser extends ViewRecord
|
||||
$examRep = new ExamRepository();
|
||||
try {
|
||||
$examRep->avoidExamUser($this->record->id);
|
||||
$this->notify('success', 'Success !');
|
||||
send_admin_success_notification();
|
||||
$this->record = $this->resolveRecord($this->record->id);
|
||||
} catch (\Exception $exception) {
|
||||
$this->notify('danger', $exception->getMessage());
|
||||
send_admin_fail_notification($exception->getMessage());
|
||||
}
|
||||
})
|
||||
->label(__('admin.resources.exam_user.action_avoid')),
|
||||
@@ -106,10 +106,10 @@ class ViewExamUser extends ViewRecord
|
||||
$examRep = new ExamRepository();
|
||||
try {
|
||||
$examRep->updateExamUserEnd($this->record, Carbon::parse($data['end']), $data['reason'] ?? "");
|
||||
$this->notify('success', 'Success !');
|
||||
send_admin_success_notification();
|
||||
$this->record = $this->resolveRecord($this->record->id);
|
||||
} catch (\Exception $exception) {
|
||||
$this->notify('danger', $exception->getMessage());
|
||||
send_admin_fail_notification($exception->getMessage());
|
||||
}
|
||||
})
|
||||
->label(__('admin.resources.exam_user.action_update_end')),
|
||||
|
||||
Reference in New Issue
Block a user