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 API token

ayntk-ai93a4a3e09cbe
diff --git a/resources/views/livewire/security/api-tokens.blade.php b/resources/views/livewire/security/api-tokens.blade.php
index 3a5d4560c1..16e853c39c 100644
--- a/resources/views/livewire/security/api-tokens.blade.php
+++ b/resources/views/livewire/security/api-tokens.blade.php
@@ -56,12 +56,18 @@
@endif
</div>
- <x-modal-confirmation isErrorButton action="revoke({{ data_get($token, 'id') }})">
- <x-slot:button-title>
- Revoke token
- </x-slot:button-title>
- This API Token will be deleted and anything using it will fail. <br>Please think again.
- </x-modal-confirmation>
+ <x-modal-confirmation
+ title="Confirm API Token Revocation?"
+ 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.']"
+ 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>
@empty
<div>