coolify/app/Http/Livewire/Server/Proxy/Status.php

22 lines
418 B
PHP
Raw Normal View History

2023-06-02 15:15:12 +02:00
<?php
namespace App\Http\Livewire\Server\Proxy;
use App\Jobs\ProxyContainerStatusJob;
use App\Models\Server;
use Livewire\Component;
class Status extends Component
{
public Server $server;
2023-07-28 14:44:26 +02:00
public function get_status()
2023-06-02 15:15:12 +02:00
{
2023-07-28 21:36:19 +02:00
dispatch_sync(new ProxyContainerStatusJob(
server: $this->server
));
$this->server->refresh();
$this->emit('proxyStatusUpdated');
2023-06-02 15:15:12 +02:00
}
}