mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Migrate away from dispatchBrowserEvent()
This commit is contained in:
parent
45419586fe
commit
8ff639913d
|
@ -50,7 +50,7 @@ class OauthClients extends Component
|
|||
$this->redirect,
|
||||
);
|
||||
|
||||
$this->dispatchBrowserEvent('clientCreated');
|
||||
$this->dispatch('clientCreated');
|
||||
}
|
||||
|
||||
public function deleteClient(Client $clientId): void
|
||||
|
@ -83,7 +83,7 @@ class OauthClients extends Component
|
|||
|
||||
$this->editClientId = $editClientId->id;
|
||||
|
||||
$this->dispatchBrowserEvent('editClient');
|
||||
$this->dispatch('editClient');
|
||||
}
|
||||
|
||||
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->dispatchBrowserEvent('clientUpdated');
|
||||
$this->dispatch('clientUpdated');
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -17,7 +17,7 @@ class PersonalAccessTokens extends Component
|
|||
//this is just an annoying thing to make the modal input autofocus
|
||||
public function autoFocusModalEvent(): void
|
||||
{
|
||||
$this->dispatchBrowserEvent('autoFocusModal');
|
||||
$this->dispatch('autoFocusModal');
|
||||
}
|
||||
|
||||
public function render()
|
||||
|
@ -42,7 +42,7 @@ class PersonalAccessTokens extends Component
|
|||
|
||||
$this->newTokenString = $newToken->accessToken;
|
||||
|
||||
$this->dispatchBrowserEvent('tokenCreated', $newToken->accessToken);
|
||||
$this->dispatch('tokenCreated', token: $newToken->accessToken);
|
||||
}
|
||||
|
||||
public function deleteToken($tokenId): void
|
||||
|
|
Loading…
Reference in a new issue