Replace native browser confirms with Ladill confirm dialogs.
Deploy Ladill Care / deploy (push) Successful in 49s

Appointment cancel and other destructive actions now use the shared modal UI instead of window.confirm.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-12 17:51:13 +00:00
co-authored by Cursor
parent f1e28c7af8
commit 30b96b3956
8 changed files with 164 additions and 26 deletions
@@ -47,10 +47,19 @@
</div>
</form>
@if ($credential->sms_api_key_encrypted || $credential->hasValidSms())
<form method="POST" action="{{ route('care.integrations.sms.disconnect') }}" class="mt-3" onsubmit="return confirm('Disconnect Ladill SMS?')">
@csrf
<button type="submit" class="text-sm text-rose-700 hover:underline">Disconnect SMS</button>
</form>
<div class="mt-3">
<x-confirm-dialog
name="disconnect-sms"
title="Disconnect Ladill SMS?"
message="Patient SMS will stop working until you connect a new key."
:action="route('care.integrations.sms.disconnect')"
confirm-label="Disconnect SMS"
>
<x-slot:trigger>
<button type="button" class="text-sm text-rose-700 hover:underline">Disconnect SMS</button>
</x-slot:trigger>
</x-confirm-dialog>
</div>
@endif
@endif
</x-settings.card>
@@ -98,10 +107,19 @@
</div>
</form>
@if ($credential->bird_api_key_encrypted || $credential->hasValidBird())
<form method="POST" action="{{ route('care.integrations.bird.disconnect') }}" class="mt-3" onsubmit="return confirm('Disconnect Ladill Bird?')">
@csrf
<button type="submit" class="text-sm text-rose-700 hover:underline">Disconnect Bird</button>
</form>
<div class="mt-3">
<x-confirm-dialog
name="disconnect-bird"
title="Disconnect Ladill Bird?"
message="Patient email will stop working until you connect a new key."
:action="route('care.integrations.bird.disconnect')"
confirm-label="Disconnect Bird"
>
<x-slot:trigger>
<button type="button" class="text-sm text-rose-700 hover:underline">Disconnect Bird</button>
</x-slot:trigger>
</x-confirm-dialog>
</div>
@endif
@endif
</x-settings.card>