fix: show database logs in case of its not healthy and running

This commit is contained in:
Andras Bacsai
2023-10-13 09:40:37 +02:00
parent c970907c73
commit aea7cc9638
2 changed files with 1 additions and 7 deletions

View File

@@ -9,11 +9,7 @@
<h1>Logs</h1>
<livewire:project.database.heading :database="$resource" />
<div class="pt-4">
@if (Str::of($status)->startsWith('running'))
<livewire:project.shared.get-logs :server="$server" :container="$container" />
@else
Database is not running.
@endif
<livewire:project.shared.get-logs :server="$server" :container="$container" />
</div>
@elseif ($type === 'service')
<livewire:project.service.navbar :service="$resource" :parameters="$parameters" :query="$query" />