fix: service status

This commit is contained in:
Andras Bacsai 2023-10-02 14:12:19 +02:00
parent f863db7ea5
commit ab5202515e
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,6 @@ public function render()
}
public function serviceStatusUpdated()
{
ray('serviceStatusUpdated');
$this->check_status();
}
public function check_status()

View File

@ -29,7 +29,7 @@
</a>
</div>
<div class="flex-1 pl-8">
@if (Str::of($status)->startsWith('running'))
@if (serviceStatus($resource) === 'running')
<livewire:project.shared.get-logs :server="$server" :container="$container" />
@else
Service is not running.