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

Integrations disconnect and custom-domain removal use the shared modal UI.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-12 17:51:22 +00:00
co-authored by Cursor
parent 6e42cd1cb2
commit d14180b335
3 changed files with 40 additions and 14 deletions
@@ -12,10 +12,10 @@
@php
$confirmBtnClass = $variant === 'danger'
? 'bg-red-600 hover:bg-red-700'
: 'bg-violet-600 hover:bg-violet-700';
: 'bg-indigo-600 hover:bg-indigo-700';
$iconWrapClass = $variant === 'danger'
? 'bg-red-100 text-red-600'
: 'bg-violet-100 text-violet-600';
: 'bg-indigo-100 text-indigo-600';
@endphp
@if(isset($trigger))
+12 -4
View File
@@ -81,10 +81,18 @@
<button class="text-xs font-semibold text-indigo-600 hover:text-indigo-500">Verify &amp; enable SSL</button>
</form>
@endunless
<form method="post" action="{{ route('events.custom-domain.destroy', $cd) }}" onsubmit="return confirm('Remove this custom domain?');">
@csrf @method('DELETE')
<button class="text-xs font-medium text-slate-500 hover:text-red-600">Remove</button>
</form>
<x-confirm-dialog
:name="'remove-domain-'.$cd->id"
title="Remove this custom domain?"
message="Your event will no longer be served on this domain."
:action="route('events.custom-domain.destroy', $cd)"
method="DELETE"
confirm-label="Remove domain"
>
<x-slot:trigger>
<button type="button" class="text-xs font-medium text-slate-500 hover:text-red-600">Remove</button>
</x-slot:trigger>
</x-confirm-dialog>
</div>
</div>
@empty
@@ -56,10 +56,19 @@
</form>
@if ($credential->sms_api_key_encrypted || $credential->hasValidSms())
<form method="POST" action="{{ route('account.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="Attendee SMS will stop working until you connect a new key."
:action="route('account.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
</div>
@@ -107,10 +116,19 @@
</form>
@if ($credential->bird_api_key_encrypted || $credential->hasValidBird())
<form method="POST" action="{{ route('account.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="Attendee email will stop working until you connect a new key."
:action="route('account.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
</div>
</div>