diff --git a/app/Http/Controllers/DatabaseController.php b/app/Http/Controllers/DatabaseController.php index e8f85110b..684e427f9 100644 --- a/app/Http/Controllers/DatabaseController.php +++ b/app/Http/Controllers/DatabaseController.php @@ -68,6 +68,14 @@ public function backups() if (!$database) { return redirect()->route('dashboard'); } + // No backups for redis + if ($database->getMorphClass() === 'App\Models\StandaloneRedis') { + return redirect()->route('project.database.configuration', [ + 'project_uuid' => $project->uuid, + 'environment_name' => $environment->name, + 'database_uuid' => $database->uuid, + ]); + } return view('project.database.backups.all', [ 'database' => $database, 's3s' => currentTeam()->s3s, diff --git a/resources/views/components/databases/navbar.blade.php b/resources/views/components/databases/navbar.blade.php index 6681565ba..84eb2479e 100644 --- a/resources/views/components/databases/navbar.blade.php +++ b/resources/views/components/databases/navbar.blade.php @@ -7,14 +7,13 @@ href="{{ route('project.database.logs', $parameters) }}"> - - - - {{-- --}} + @if ($database->getMorphClass() === 'App\Models\StandalonePostgresql') + + + + @endif
- {{-- --}} - @if ($database->status !== 'exited')