fix filament resource notify

This commit is contained in:
xiaomlove
2025-02-08 01:24:29 +08:00
parent 4a0475b49c
commit e45b7c42f0
9 changed files with 20 additions and 26 deletions
@@ -28,9 +28,9 @@ class ListAgentAllows extends PageList
$agentAllowRep = new AgentAllowRepository();
try {
$result = $agentAllowRep->checkClient($data['peer_id'], $data['agent']);
$this->notify('success', __('admin.resources.agent_allow.check_pass_msg', ['id' => $result->id]));
send_admin_success_notification(__('admin.resources.agent_allow.check_pass_msg', ['id' => $result->id]));
} catch (\Exception $exception) {
$this->notify('danger', $exception->getMessage());
send_admin_fail_notification($exception->getMessage());
}
})