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