Feat: confirm private key

This commit is contained in:
ayntk-ai
2024-09-04 20:02:01 +02:00
parent 93a4a3e09c
commit 9515bc6162
2 changed files with 13 additions and 4 deletions

View File

@@ -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"

View File

@@ -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 />