Feat: confirm API token

This commit is contained in:
ayntk-ai
2024-09-04 19:58:36 +02:00
parent bbbd5cbaa1
commit 93a4a3e09c

View File

@@ -56,12 +56,18 @@
@endif @endif
</div> </div>
<x-modal-confirmation isErrorButton action="revoke({{ data_get($token, 'id') }})"> <x-modal-confirmation
<x-slot:button-title> title="Confirm API Token Revocation?"
Revoke token isErrorButton
</x-slot:button-title> buttonTitle="Revoke token"
This API Token will be deleted and anything using it will fail. <br>Please think again. submitAction="revoke({{ data_get($token, 'id') }})"
</x-modal-confirmation> :actions="['This API Token will be revoked and 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"
:confirmWithPassword="false"
step2ButtonText="Revoke API Token"
/>
</div> </div>
@empty @empty
<div> <div>