lasthourcloud/app/Http/Livewire/Server/Proxy/Status.php
Andras Bacsai b57b4f9bd3 fixes
2023-07-28 21:36:19 +02:00

20 lines
416 B
PHP

<?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;
public function get_status()
{
dispatch_sync(new ProxyContainerStatusJob(
server: $this->server
));
$this->server->refresh();
$this->emit('proxyStatusUpdated');
}
}