use naked modal

This commit is contained in:
Andras Bacsai
2023-05-04 22:39:40 +02:00
parent c4a4801414
commit 1e98cddaa6
5 changed files with 13 additions and 11 deletions

View File

@@ -1,4 +1,5 @@
<div>
<div x-data="{ deleteServer: false }">
<x-naked-modal show="deleteServer" message='Are you sure you would like to delete this server?' />
<form wire:submit.prevent='submit' class="flex flex-col">
<div class="flex flex-col gap-2 xl:flex-row">
<div class="flex flex-col w-96">
@@ -21,7 +22,7 @@
<x-inputs.button type="submit">Submit</x-inputs.button>
<x-inputs.button wire:click.prevent='checkServer'>Check Server</x-inputs.button>
<x-inputs.button wire:click.prevent='installDocker'>Install Docker</x-inputs.button>
<x-inputs.button confirm="Are you sure you would like to delete this application?" confirmAction="delete">
<x-inputs.button isWarning x-on:click="deleteServer = true">
Delete
</x-inputs.button>
</div>