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: confirm private key

ayntk-ai9515bc6162ef
diff --git a/resources/views/livewire/security/api-tokens.blade.php b/resources/views/livewire/security/api-tokens.blade.php
index 16e853c39c..48f68d9d7a 100644
--- a/resources/views/livewire/security/api-tokens.blade.php
+++ b/resources/views/livewire/security/api-tokens.blade.php
@@ -61,7 +61,7 @@
isErrorButton
buttonTitle="Revoke token"
submitAction="revoke({{ data_get($token, 'id') }})"
- :actions="['This API Token will be revoked and deleted.', 'Any API call made with this token will fail.']"
+ :actions="['This API Token will be revoked and permanently deleted.', 'Any API call made with this token will fail.']"
confirmationText="{{ $token->name }}"
confirmationLabel="Please confirm the execution of the actions by entering the API Token Description below"
shortConfirmationLabel="API Token Description"
diff --git a/resources/views/livewire/security/private-key/show.blade.php b/resources/views/livewire/security/private-key/show.blade.php
index 97def53177..642580fba6 100644
--- a/resources/views/livewire/security/private-key/show.blade.php
+++ b/resources/views/livewire/security/private-key/show.blade.php
@@ -11,9 +11,18 @@
Save
</x-forms.button>
@if (data_get($private_key, 'id') > 0)
- <x-modal-confirmation isErrorButton buttonTitle="Delete">
- This private key will be deleted. It is not reversible. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ title="Confirm Private Key Deletion?"
+ isErrorButton
+ buttonTitle="Delete"
+ submitAction="delete({{ $private_key->id }})"
+ :actions="['This private key will be permanently deleted.', 'All servers connected to this private key will stop working.', 'Any git app using this private key will stop working.']"
+ confirmationText="{{ $private_key->name }}"
+ confirmationLabel="Please confirm the execution of the actions by entering the Private Key Name below"
+ shortConfirmationLabel="Private Key Name"
+ :confirmWithPassword="false"
+ step2ButtonText="Delete Private Key"
+ />
@endif
</div>
<x-forms.input id="private_key.name" label="Name" required />