feat: revalidate server
This commit is contained in:
parent
bfb0260550
commit
a9ea6330d9
@ -68,6 +68,9 @@ class Form extends Component
|
|||||||
return handleError($e, $this);
|
return handleError($e, $this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
public function revalidate() {
|
||||||
|
$this->validateServer();
|
||||||
|
}
|
||||||
public function checkLocalhostConnection()
|
public function checkLocalhostConnection()
|
||||||
{
|
{
|
||||||
$uptime = $this->server->validateConnection();
|
$uptime = $this->server->validateConnection();
|
||||||
|
@ -10,12 +10,17 @@
|
|||||||
</x-new-modal>
|
</x-new-modal>
|
||||||
@else
|
@else
|
||||||
<x-forms.button type="submit">Save</x-forms.button>
|
<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
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@if (!$server->isFunctional())
|
@if ($server->isFunctional())
|
||||||
You can't use this server until it is validated.
|
|
||||||
@else
|
|
||||||
Server is reachable and validated.
|
Server is reachable and validated.
|
||||||
|
@else
|
||||||
|
You can't use this server until it is validated.
|
||||||
@endif
|
@endif
|
||||||
@if ((!$server->settings->is_reachable || !$server->settings->is_usable) && $server->id !== 0)
|
@if ((!$server->settings->is_reachable || !$server->settings->is_usable) && $server->id !== 0)
|
||||||
<x-slide-over closeWithX fullScreen>
|
<x-slide-over closeWithX fullScreen>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user