fix: routing, switch back to old one

This commit is contained in:
Andras Bacsai committed 2023-12-27 16:45:01 +01:00
1 parent 8c20c833ba
commit f03aa57758
70 files changed
+961 -322

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ class Create extends Component
$this->storage->team_id = currentTeam()->id;
$this->storage->testConnection();
$this->storage->save();
return $this->redirectRoute('team.storages.show', $this->storage->uuid, navigate: true);
return redirect()->route('team.storages.show', $this->storage->uuid);
} catch (\Throwable $e) {
return handleError($e, $this);
}
+1 -1
View File
@@ -43,7 +43,7 @@ class Form extends Component
{
try {
$this->storage->delete();
return $this->redirectRoute('team.storages.all', navigate: true);
return redirect()->route('team.storages.all');
} catch (\Throwable $e) {
return handleError($e, $this);
}