feat: revalidate server

This commit is contained in:
Andras Bacsai 2024-02-15 13:52:54 +01:00
parent bfb0260550
commit a9ea6330d9
2 changed files with 11 additions and 3 deletions

View File

@ -68,6 +68,9 @@ public function instantSave()
return handleError($e, $this);
}
}
public function revalidate() {
$this->validateServer();
}
public function checkLocalhostConnection()
{
$uptime = $this->server->validateConnection();

View File

@ -10,12 +10,17 @@
</x-new-modal>
@else
<x-forms.button type="submit">Save</x-forms.button>
<x-new-modal buttonTitle="Revalidate" title="Revalidate" action="revalidate">
This will revalidate the server, install / update Docker Engine, Docker Compose and all related
configuration. It will also restart Docker Engine, so your running containers will be unreachable
for the time being.
</x-new-modal>
@endif
</div>
@if (!$server->isFunctional())
You can't use this server until it is validated.
@else
@if ($server->isFunctional())
Server is reachable and validated.
@else
You can't use this server until it is validated.
@endif
@if ((!$server->settings->is_reachable || !$server->settings->is_usable) && $server->id !== 0)
<x-slide-over closeWithX fullScreen>