diff --git a/src/Http/Livewire/ApiTokenManager.php b/src/Http/Livewire/ApiTokenManager.php index dffb37355..4b6eb8772 100644 --- a/src/Http/Livewire/ApiTokenManager.php +++ b/src/Http/Livewire/ApiTokenManager.php @@ -117,6 +117,8 @@ protected function displayTokenValue($token) $this->displayingToken = true; $this->plainTextToken = explode('|', $token->plainTextToken, 2)[1]; + + $this->dispatchBrowserEvent('showing-token-modal'); } /** diff --git a/stubs/livewire/resources/views/api/api-token-manager.blade.php b/stubs/livewire/resources/views/api/api-token-manager.blade.php index b8dd21fe5..42864bb11 100644 --- a/stubs/livewire/resources/views/api/api-token-manager.blade.php +++ b/stubs/livewire/resources/views/api/api-token-manager.blade.php @@ -104,9 +104,11 @@ {{ __('Please copy your new API token. For your security, it won\'t be shown again.') }} -
- {{ $plainTextToken }} -
+