Feat: GH app deletion confirmation

This commit is contained in:
ayntk-ai
2024-09-04 21:00:58 +02:00
parent 3e04a7958e
commit 9105c1aa51

View File

@@ -14,13 +14,31 @@
</a> </a>
@endif @endif
@if ($applications->count() > 0) @if ($applications->count() > 0)
<x-modal-confirmation disabled isErrorButton buttonTitle="Delete"> <x-modal-confirmation
This source will be deleted. It is not reversible. <br>Please think again. title="Confirm GitHub App Deletion?"
</x-modal-confirmation> 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 @else
<x-modal-confirmation isErrorButton buttonTitle="Delete"> <x-modal-confirmation
This source will be deleted. It is not reversible. <br>Please think again. title="Confirm GitHub App Deletion?"
</x-modal-confirmation> 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 @endif
</div> </div>
</div> </div>
@@ -160,9 +178,18 @@
<div class="flex items-center gap-2 pb-4"> <div class="flex items-center gap-2 pb-4">
<h1>GitHub App</h1> <h1>GitHub App</h1>
<div class="flex gap-2"> <div class="flex gap-2">
<x-modal-confirmation isErrorButton buttonTitle="Delete"> <x-modal-confirmation
This source will be deleted. It is not reversible. <br>Please think again. title="Confirm GitHub App Deletion?"
</x-modal-confirmation> 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> </div>
<div class="mb-10 rounded alert-error"> <div class="mb-10 rounded alert-error">