Replace native browser confirms with Ladill confirm dialogs.
Deploy Ladill Frontdesk / deploy (push) Successful in 43s
Deploy Ladill Frontdesk / deploy (push) Successful in 43s
Visits, devices, and admin destructive actions now use the shared modal UI. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -57,10 +57,19 @@
|
||||
<button type="submit" class="btn-primary">Validate & save SMS</button>
|
||||
</form>
|
||||
@if ($credential->sms_api_key_encrypted || $credential->hasValidSms())
|
||||
<form method="POST" action="{{ route('frontdesk.integrations.sms.disconnect') }}" class="mt-3" onsubmit="return confirm('Disconnect Ladill SMS?')">
|
||||
@csrf
|
||||
<button type="submit" class="text-sm text-rose-700 hover:underline dark:text-rose-400">Disconnect SMS</button>
|
||||
</form>
|
||||
<div class="mt-3">
|
||||
<x-confirm-dialog
|
||||
name="disconnect-sms"
|
||||
title="Disconnect Ladill SMS?"
|
||||
message="Host SMS alerts will stop working until you connect a new key."
|
||||
:action="route('frontdesk.integrations.sms.disconnect')"
|
||||
confirm-label="Disconnect SMS"
|
||||
>
|
||||
<x-slot:trigger>
|
||||
<button type="button" class="text-sm text-rose-700 hover:underline dark:text-rose-400">Disconnect SMS</button>
|
||||
</x-slot:trigger>
|
||||
</x-confirm-dialog>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</section>
|
||||
@@ -112,10 +121,19 @@
|
||||
<button type="submit" class="btn-primary">Validate & save Bird</button>
|
||||
</form>
|
||||
@if ($credential->bird_api_key_encrypted || $credential->hasValidBird())
|
||||
<form method="POST" action="{{ route('frontdesk.integrations.bird.disconnect') }}" class="mt-3" onsubmit="return confirm('Disconnect Ladill Bird?')">
|
||||
@csrf
|
||||
<button type="submit" class="text-sm text-rose-700 hover:underline dark:text-rose-400">Disconnect Bird</button>
|
||||
</form>
|
||||
<div class="mt-3">
|
||||
<x-confirm-dialog
|
||||
name="disconnect-bird"
|
||||
title="Disconnect Ladill Bird?"
|
||||
message="Host email alerts will stop working until you connect a new key."
|
||||
:action="route('frontdesk.integrations.bird.disconnect')"
|
||||
confirm-label="Disconnect Bird"
|
||||
>
|
||||
<x-slot:trigger>
|
||||
<button type="button" class="text-sm text-rose-700 hover:underline dark:text-rose-400">Disconnect Bird</button>
|
||||
</x-slot:trigger>
|
||||
</x-confirm-dialog>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user