From 3cc1731c1234a0aaf3a3dd0da8b8299eaa5e894f Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Tue, 11 Jul 2023 11:51:06 +0200 Subject: [PATCH] refactor --- app/Http/Livewire/Server/Proxy.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/Http/Livewire/Server/Proxy.php b/app/Http/Livewire/Server/Proxy.php index 7049cd173..95e3e7e76 100644 --- a/app/Http/Livewire/Server/Proxy.php +++ b/app/Http/Livewire/Server/Proxy.php @@ -31,18 +31,6 @@ class Proxy extends Component $this->server->proxy->type = null; $this->server->save(); } - public function installProxy() - { - if ( - $this->server->proxy->last_applied_settings && - $this->server->proxy->last_saved_settings !== $this->server->proxy->last_applied_settings - ) { - $this->saveConfiguration($this->server); - } - $activity = resolve(InstallProxy::class)($this->server); - $this->emit('newMonitorActivity', $activity->id); - } - public function setProxy(string $proxy_type) { $this->server->proxy->type = $proxy_type; @@ -56,6 +44,7 @@ class Proxy extends Component ], $this->server); $this->server->proxy->status = 'exited'; $this->server->save(); + $this->server->refresh(); } public function saveConfiguration() {