Fix server form to dispatch 'proxyStatusUpdated' event when server is reachable

This commit is contained in:
Andras Bacsai 2024-05-03 10:54:46 +02:00
parent 644f15e80d
commit 6b81eaa65d

View File

@ -82,6 +82,7 @@ public function checkLocalhostConnection()
$this->server->settings->is_reachable = true;
$this->server->settings->is_usable = true;
$this->server->settings->save();
$this->dispatch('proxyStatusUpdated');
} else {
$this->dispatch('error', 'Server is not reachable.', 'Please validate your configuration and connection.<br><br>Check this <a target="_blank" class="underline" href="https://coolify.io/docs/knowledge-base/server/openssh">documentation</a> for further help. <br><br>Error: ' . $error);
return;