mirror of
https://github.com/tiennm99/coolify.git
synced 2026-05-13 16:58:10 +00:00
feat: add retry functionality for server validation process
This commit is contained in:
@@ -64,6 +64,19 @@ class ValidateAndInstall extends Component
|
||||
$this->init();
|
||||
}
|
||||
|
||||
public function retry()
|
||||
{
|
||||
$this->authorize('update', $this->server);
|
||||
$this->uptime = null;
|
||||
$this->supported_os_type = null;
|
||||
$this->docker_installed = null;
|
||||
$this->docker_compose_installed = null;
|
||||
$this->docker_version = null;
|
||||
$this->error = null;
|
||||
$this->number_of_tries = 0;
|
||||
$this->init();
|
||||
}
|
||||
|
||||
public function validateConnection()
|
||||
{
|
||||
$this->authorize('update', $this->server);
|
||||
|
||||
@@ -123,6 +123,9 @@
|
||||
<livewire:activity-monitor header="Docker Installation Logs" :showWaiting="false" />
|
||||
@isset($error)
|
||||
<pre class="font-bold whitespace-pre-line text-error">{!! $error !!}</pre>
|
||||
<x-forms.button canGate="update" :canResource="$server" wire:click="retry" class="mt-4">
|
||||
Retry Validation
|
||||
</x-forms.button>
|
||||
@endisset
|
||||
@endif
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user