mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-14 20:17:05 +00:00
refactor(redirect): replace redirect calls with redirectRoute helper for consistency
This commit is contained in:
1 parent
5d98847e49
commit
ef1abe17b8
20 files changed
+25
-25
No files matched your search
@@ -114,7 +114,7 @@ class Create extends Component
|
||||
private function redirectAfterCreation(PrivateKey $privateKey)
|
||||
{
|
||||
return $this->from === 'server'
|
||||
? redirect()->route('dashboard')
|
||||
: redirect()->route('security.private-key.show', ['private_key_uuid' => $privateKey->uuid]);
|
||||
? redirectRoute($this, 'dashboard')
|
||||
: redirectRoute($this, 'security.private-key.show', ['private_key_uuid' => $privateKey->uuid]);
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ class Show extends Component
|
||||
$this->private_key->safeDelete();
|
||||
currentTeam()->privateKeys = PrivateKey::where('team_id', currentTeam()->id)->get();
|
||||
|
||||
return redirect()->route('security.private-key.index');
|
||||
return redirectRoute($this, 'security.private-key.index');
|
||||
} catch (\Exception $e) {
|
||||
$this->dispatch('error', $e->getMessage());
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in new issue
Block a user