From e635dc4316300d7892f32c3bc7bfc221d6d45bb2 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 15 May 2023 22:17:31 +0200 Subject: [PATCH] fix --- app/Http/Livewire/Server/Proxy.php | 10 +++++++++- resources/views/livewire/server/proxy.blade.php | 5 +++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Http/Livewire/Server/Proxy.php index 22d4e8496..f248325c7 100644 --- a/app/Http/Livewire/Server/Proxy.php +++ b/app/Http/Livewire/Server/Proxy.php @@ -62,7 +62,7 @@ public function saveConfiguration() return generalErrorHandler($e); } } - public function checkProxySettingsInSync() + public function resetProxy() { try { $this->proxy_settings = resolve(CheckProxySettingsInSync::class)($this->server, true); @@ -70,4 +70,12 @@ public function checkProxySettingsInSync() return generalErrorHandler($e); } } + public function checkProxySettingsInSync() + { + try { + $this->proxy_settings = resolve(CheckProxySettingsInSync::class)($this->server); + } catch (\Exception $e) { + return generalErrorHandler($e); + } + } } diff --git a/resources/views/livewire/server/proxy.blade.php b/resources/views/livewire/server/proxy.blade.php index 2ce8d85b8..537e23ba1 100644 --- a/resources/views/livewire/server/proxy.blade.php +++ b/resources/views/livewire/server/proxy.blade.php @@ -23,7 +23,8 @@ @endif Stop - Show Configuration + Show + Configuration
@@ -41,7 +42,7 @@ wire:click.prevent="installProxy"> Apply - + Default