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: GH app deletion confirmation

ayntk-ai9105c1aa51db
diff --git a/resources/views/livewire/source/github/change.blade.php b/resources/views/livewire/source/github/change.blade.php
index a87eec191a..a20dd2b880 100644
--- a/resources/views/livewire/source/github/change.blade.php
+++ b/resources/views/livewire/source/github/change.blade.php
@@ -14,13 +14,31 @@
</a>
@endif
@if ($applications->count() > 0)
- <x-modal-confirmation disabled isErrorButton buttonTitle="Delete">
- This source will be deleted. It is not reversible. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ title="Confirm GitHub App Deletion?"
+ isErrorButton
+ buttonTitle="Delete"
+ submitAction="delete"
+ :actions="['The selected GitHub App will be permanently deleted.']"
+ confirmationText="{{ data_get($github_app, 'name') }}"
+ confirmationLabel="Please confirm the execution of the actions by entering the GitHub App Name below"
+ shortConfirmationLabel="GitHub App Name"
+ :confirmWithPassword="false"
+ step2ButtonText="Permanently Delete GitHub App"
+ />
@else
- <x-modal-confirmation isErrorButton buttonTitle="Delete">
- This source will be deleted. It is not reversible. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ title="Confirm GitHub App Deletion?"
+ isErrorButton
+ buttonTitle="Delete"
+ submitAction="delete"
+ :actions="['The selected GitHub App will be permanently deleted.']"
+ confirmationLabel="Please confirm the execution of the actions by entering the GitHub App Name below"
+ shortConfirmationLabel="GitHub App Name"
+ confirmationText="{{ data_get($github_app, 'name') }}"
+ :confirmWithPassword="false"
+ step2ButtonText="Permanently Delete GitHub App"
+ />
@endif
</div>
</div>
@@ -160,9 +178,18 @@
<div class="flex items-center gap-2 pb-4">
<h1>GitHub App</h1>
<div class="flex gap-2">
- <x-modal-confirmation isErrorButton buttonTitle="Delete">
- This source will be deleted. It is not reversible. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ title="Confirm GitHub App Deletion?"
+ isErrorButton
+ buttonTitle="Delete"
+ submitAction="delete"
+ :actions="['The selected GitHub App will be permanently deleted.']"
+ confirmationText="{{ data_get($github_app, 'name') }}"
+ confirmationLabel="Please confirm the execution of the actions by entering the GitHub App Name below"
+ shortConfirmationLabel="GitHub App Name"
+ :confirmWithPassword="false"
+ step2ButtonText="Permanently Delete GitHub App"
+ />
</div>
</div>
<div class="mb-10 rounded alert-error">