From ff1e08cf8bd9f68a64e1e6604932bdbc4c94d5e7 Mon Sep 17 00:00:00 2001 From: ayntk-ai <122374094+ayntk-ai@users.noreply.github.com> Date: Mon, 2 Sep 2024 23:25:18 +0200 Subject: [PATCH] add toast dispatching --- app/Livewire/Dashboard.php | 1 - .../components/modal-confirmation.blade.php | 45 ++++++++++--------- resources/views/livewire/dashboard.blade.php | 10 ++--- 3 files changed, 28 insertions(+), 28 deletions(-) diff --git a/app/Livewire/Dashboard.php b/app/Livewire/Dashboard.php index 1fe8b496d..215d3b16c 100644 --- a/app/Livewire/Dashboard.php +++ b/app/Livewire/Dashboard.php @@ -33,7 +33,6 @@ class Dashboard extends Component Artisan::queue('cleanup:application-deployment-queue', [ '--team-id' => currentTeam()->id, ]); - return redirect()->route('dashboard')->with('success', 'Cleanup started.'); } public function get_deployments() diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php index 72cf70758..ccf4fa07c 100644 --- a/resources/views/components/modal-confirmation.blade.php +++ b/resources/views/components/modal-confirmation.blade.php @@ -17,6 +17,9 @@ 'step1ButtonText' => 'Continue Deletion', 'step2ButtonText' => 'Delete Permanently', 'step3ButtonText' => 'Confirm Permanent Deletion', +'dispatchEvent' => false, +'dispatchEventType' => 'success', +'dispatchEventMessage' => '', ])