diff --git a/app/Livewire/Server/Proxy.php b/app/Livewire/Server/Proxy.php index 9332c2517..1cf8c839e 100644 --- a/app/Livewire/Server/Proxy.php +++ b/app/Livewire/Server/Proxy.php @@ -19,7 +19,15 @@ class Proxy extends Component public ?string $redirect_url = null; - protected $listeners = ['saveConfiguration' => 'submit']; + public function getListeners() + { + $teamId = auth()->user()->currentTeam()->id; + + return [ + 'saveConfiguration' => 'submit', + "echo-private:team.{$teamId},ProxyStatusChangedUI" => '$refresh', + ]; + } protected $rules = [ 'server.settings.generate_exact_labels' => 'required|boolean', diff --git a/resources/views/components/status/index.blade.php b/resources/views/components/status/index.blade.php index fe9569c8a..65beace65 100644 --- a/resources/views/components/status/index.blade.php +++ b/resources/views/components/status/index.blade.php @@ -13,11 +13,18 @@ @endif @if (!str($resource->status)->contains('exited') && $showRefreshButton) - + @endif diff --git a/resources/views/components/status/services.blade.php b/resources/views/components/status/services.blade.php index 557fbfbfe..677cc6f45 100644 --- a/resources/views/components/status/services.blade.php +++ b/resources/views/components/status/services.blade.php @@ -10,11 +10,18 @@ @endif @if (!str($complexStatus)->contains('exited') && $showRefreshButton) - + @endif