From 34ff8e9a9817eb49c93c0a4805f4bf800b300a7a Mon Sep 17 00:00:00 2001
From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com>
Date: Fri, 25 Oct 2024 20:58:17 +0200
Subject: [PATCH 1/2] fix rendering glitch with tow step confirmation
---
.../components/modal-confirmation.blade.php | 119 +++++++++---------
1 file changed, 57 insertions(+), 62 deletions(-)
diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index 7cc0dfaa5..36af1c3a2 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -23,8 +23,8 @@
])
@php
- $settings = instanceSettings();
- $disableTwoStepConfirmation = $settings->disable_two_step_confirmation ?? false;
+ use App\Models\InstanceSettings;
+ $disableTwoStepConfirmation = data_get(InstanceSettings::get(), 'disable_two_step_confirmation');
@endphp
@endforeach
+
+
+
+ Cancel
+
+
+
+
+
@endif
@@ -267,6 +277,29 @@
@endif
@endif
+
+
+
+ Back
+
+
+
+
+
@@ -291,68 +324,30 @@
{{ $message }}
@enderror
-
- @endif
-
-
-
-
-
- Back
-
-
-
-
- Cancel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- @if (!$disableTwoStepConfirmation)
-
- {
- if (result === true) {
- modalOpen = false;
- resetModal();
- } else {
- passwordError = result;
+
+
+ Back
+
+
-
-
-
+ submitForm().then((result) => {
+ if (result === true) {
+ modalOpen = false;
+ resetModal();
+ } else {
+ passwordError = result;
+ password = ''; // Clear the password field
+ }
+ });
+ ">
+
+
+
+
@endif
From 7da9b28c48946d97c5e1509957e141e482a7d2fd Mon Sep 17 00:00:00 2001
From: peaklabs-dev <122374094+peaklabs-dev@users.noreply.github.com>
Date: Fri, 25 Oct 2024 21:09:10 +0200
Subject: [PATCH 2/2] fix step 2 button
---
.../views/components/modal-confirmation.blade.php | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index 36af1c3a2..e31c039f8 100644
--- a/resources/views/components/modal-confirmation.blade.php
+++ b/resources/views/components/modal-confirmation.blade.php
@@ -279,9 +279,16 @@
@endif
-
- Back
-
+ @if (!empty($checkboxes))
+
+ Back
+
+ @else
+
+ Cancel
+
+ @endif