From 70043c24cfd4e915259127fe82efc2584f9a0635 Mon Sep 17 00:00:00 2001
From: ayntk-ai <122374094+ayntk-ai@users.noreply.github.com>
Date: Mon, 2 Sep 2024 23:30:47 +0200
Subject: [PATCH] 100000000x Speed improvement first toast then submit in the
background
---
.../components/modal-confirmation.blade.php | 26 +++++++++----------
1 file changed, 12 insertions(+), 14 deletions(-)
diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index ccf4fa07c..8e2b06b45 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -276,26 +276,24 @@
{
- if (dispatchEvent) {
- $wire.dispatch(dispatchEventType, dispatchEventMessage);
- }
- modalOpen = false;
- resetModal();
- })">
+ if (dispatchEvent) {
+ $wire.dispatch(dispatchEventType, dispatchEventMessage);
+ }
+ modalOpen = false;
+ resetModal();
+ confirmWithPassword ? step++ : submitForm()">
{
- if (dispatchEvent) {
- $wire.dispatch(dispatchEventType, dispatchEventMessage);
- }
- modalOpen = false;
- resetModal();
- })">
+ if (dispatchEvent) {
+ $wire.dispatch(dispatchEventType, dispatchEventMessage);
+ }
+ modalOpen = false;
+ resetModal();
+ submitForm()">