Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Feat: Team deletion confirmation

ayntk-ai2b5df8d2fdec
diff --git a/resources/views/livewire/team/index.blade.php b/resources/views/livewire/team/index.blade.php
index 40c81766cb..f7a61cf21f 100644
--- a/resources/views/livewire/team/index.blade.php
+++ b/resources/views/livewire/team/index.blade.php
@@ -31,9 +31,18 @@
@else
@if (currentTeam()->isEmpty())
<div class="pb-4">This will delete your team. Beware! There is no coming back!</div>
- <x-modal-confirmation isErrorButton buttonTitle="Delete">
- This team be deleted. It is not reversible. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ title="Confirm Team Deletion?"
+ buttonTitle="Delete"
+ isErrorButton
+ submitAction="delete({{ currentTeam()->id }})"
+ :actions="['The current team will be permanently deleted from Coolify and the database.']"
+ confirmationText="{{ currentTeam()->name }}"
+ confirmationLabel="Please confirm the execution of the actions by entering the Team Name below"
+ shortConfirmationLabel="Team Name"
+ :confirmWithPassword="false"
+ step2ButtonText="Permanently Delete Team"
+ />
@else
<div>
<div class="pb-4">You need to delete the following resources to be able to delete the team:</div>