diff --git a/resources/views/components/modal-confirmation.blade.php b/resources/views/components/modal-confirmation.blade.php
index 7cc0dfaa5..e31c039f8 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,36 @@ class="p-2 mt-1 w-full text-black rounded input">
@endif
@endif
+
+
+ @if (!empty($checkboxes))
+
+ Back
+
+ @else
+
+ Cancel
+
+ @endif
+
+
+
+
@@ -291,68 +331,30 @@ class="w-full input" placeholder="Enter your password">
{{ $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