Migrate away from dispatchBrowserEvent()

This commit is contained in:
Marcus Moore 2024-05-29 12:17:36 -07:00
parent 45419586fe
commit 8ff639913d
No known key found for this signature in database
2 changed files with 5 additions and 5 deletions

View file

@ -50,7 +50,7 @@ class OauthClients extends Component
$this->redirect, $this->redirect,
); );
$this->dispatchBrowserEvent('clientCreated'); $this->dispatch('clientCreated');
} }
public function deleteClient(Client $clientId): void public function deleteClient(Client $clientId): void
@ -83,7 +83,7 @@ class OauthClients extends Component
$this->editClientId = $editClientId->id; $this->editClientId = $editClientId->id;
$this->dispatchBrowserEvent('editClient'); $this->dispatch('editClient');
} }
public function updateClient(Client $editClientId): void public function updateClient(Client $editClientId): void
@ -103,7 +103,7 @@ class OauthClients extends Component
$this->authorizationError = 'You are not authorized to edit this client.'; $this->authorizationError = 'You are not authorized to edit this client.';
} }
$this->dispatchBrowserEvent('clientUpdated'); $this->dispatch('clientUpdated');
} }
} }

View file

@ -17,7 +17,7 @@ class PersonalAccessTokens extends Component
//this is just an annoying thing to make the modal input autofocus //this is just an annoying thing to make the modal input autofocus
public function autoFocusModalEvent(): void public function autoFocusModalEvent(): void
{ {
$this->dispatchBrowserEvent('autoFocusModal'); $this->dispatch('autoFocusModal');
} }
public function render() public function render()
@ -42,7 +42,7 @@ class PersonalAccessTokens extends Component
$this->newTokenString = $newToken->accessToken; $this->newTokenString = $newToken->accessToken;
$this->dispatchBrowserEvent('tokenCreated', $newToken->accessToken); $this->dispatch('tokenCreated', token: $newToken->accessToken);
} }
public function deleteToken($tokenId): void public function deleteToken($tokenId): void