mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-16 20:49:28 +00:00
Feat: confirm private key
This commit is contained in:
@@ -61,7 +61,7 @@
|
|||||||
isErrorButton
|
isErrorButton
|
||||||
buttonTitle="Revoke token"
|
buttonTitle="Revoke token"
|
||||||
submitAction="revoke({{ data_get($token, 'id') }})"
|
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 }}"
|
confirmationText="{{ $token->name }}"
|
||||||
confirmationLabel="Please confirm the execution of the actions by entering the API Token Description below"
|
confirmationLabel="Please confirm the execution of the actions by entering the API Token Description below"
|
||||||
shortConfirmationLabel="API Token Description"
|
shortConfirmationLabel="API Token Description"
|
||||||
|
|||||||
@@ -11,9 +11,18 @@
|
|||||||
Save
|
Save
|
||||||
</x-forms.button>
|
</x-forms.button>
|
||||||
@if (data_get($private_key, 'id') > 0)
|
@if (data_get($private_key, 'id') > 0)
|
||||||
<x-modal-confirmation isErrorButton buttonTitle="Delete">
|
<x-modal-confirmation
|
||||||
This private key will be deleted. It is not reversible. <br>Please think again.
|
title="Confirm Private Key Deletion?"
|
||||||
</x-modal-confirmation>
|
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
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<x-forms.input id="private_key.name" label="Name" required />
|
<x-forms.input id="private_key.name" label="Name" required />
|
||||||
|
|||||||
Reference in New Issue
Block a user