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 @@ @endif @endif + +
+ @if (!empty($checkboxes)) + + Back + + @else + + Cancel + + @endif + + + +
@@ -291,68 +331,30 @@

{{ $message }}

@enderror - - @endif - - -
- - - - - - - @if (!$disableTwoStepConfirmation) - + submitForm().then((result) => { + if (result === true) { + modalOpen = false; + resetModal(); + } else { + passwordError = result; + password = ''; // Clear the password field + } + }); + "> + + +
+ @endif