fix: separate delete with validation of server

This commit is contained in:
Andras Bacsai
2023-11-06 12:31:02 +01:00
parent 8b034f15fc
commit 7a117c61c4
4 changed files with 53 additions and 36 deletions

View File

@@ -0,0 +1,18 @@
<div>
<x-modal yesOrNo modalId="deleteServer" modalTitle="Delete Server">
<x-slot:modalBody>
<p>This server will be deleted. It is not reversible. <br>Please think again..</p>
</x-slot:modalBody>
</x-modal>
@if ($server->id !== 0)
<h2 class="pt-4">Danger Zone</h2>
<div class="">Woah. I hope you know what are you doing.</div>
<h4 class="pt-4">Delete Server</h4>
<div class="pb-4">This will remove this server from Coolify. Beware! There is no coming
back!
</div>
<x-forms.button isError isModal modalId="deleteServer">
Delete
</x-forms.button>
@endif
</div>