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="{ deleteDestination: false }">
<x-naked-modal show="deleteDestination" message='Are you sure you would like to delete this destination?' />
<form class="flex flex-col gap-4" wire:submit.prevent='submit'>
<x-inputs.input id="destination.name" label="Name" />
<x-inputs.input id="destination.server.ip" label="Server IP" readonly />
@@ -9,7 +10,7 @@
<x-inputs.button>
Submit
</x-inputs.button>
<x-inputs.button confirm='Are you sure you would like to delete this private key?' confirmAction="delete">
<x-inputs.button isWarning x-on:click="deleteDestination = true">
Delete
</x-inputs.button>
</div>