Feat: User deletion confirmation

This commit is contained in:
ayntk-ai
2024-09-04 21:14:18 +02:00
parent 44f3f6001e
commit f4263ee022
3 changed files with 26 additions and 16 deletions

View File

@@ -16,21 +16,16 @@
<div class="flex-1"></div>
<div class="flex items-center justify-center gap-2 mx-4 text-xs font-bold ">
<x-modal-confirmation
title="Confirm User Deletion?"
buttonTitle="Delete User"
title="Confirm User Deletion?"
buttonTitle="Delete"
isErrorButton
:actions="['This will delete the user and all the ressources related to this user from Coolify and the database.']"
confirmText="{{ $user->name }}"
submitAction="delete({{ $user->id }})"
:actions="['The selected user will be permanently deleted from Coolify and the database.', 'All resources (application, databases, services, configurations, servers, private keys, tags, etc.) related to this user will be deleted from Coolify and from the server (if the server is reachable).']"
confirmationText="{{ $user->name }}"
confirmationLabel="Please confirm the execution of the actions by entering the User Name below"
shortConfirmationLabel="User Name"
submitAction="delete({{ $user->id }})">
This will delete all resources (application, databases, services, configurations, servers,
private keys, tags, etc.) from Coolify and <span
class="font-bold text-red-500 dark:text-warning">from the server (if it's reachable)</span>.
<br> <br>
It is not reversible. <br><br>
<div class="font-bold text-red-500 dark:text-white">Think twice!</div>
</x-modal-confirmation>
step3ButtonText="Permanently Delete User"
/>
</div>
</div>
@empty