Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: server view refresh on validation

Andras Bacsai11b94e7bae87
diff --git a/app/Livewire/Server/Show.php b/app/Livewire/Server/Show.php
index 5ba8c361cd..524e219083 100644
--- a/app/Livewire/Server/Show.php
+++ b/app/Livewire/Server/Show.php
@@ -85,8 +85,8 @@ class Show extends Component
$teamId = auth()->user()->currentTeam()->id;
return [
- "echo-private:team.{$teamId},CloudflareTunnelConfigured" => '$refresh',
- 'refreshServerShow' => '$refresh',
+ "echo-private:team.{$teamId},CloudflareTunnelConfigured" => 'refresh',
+ 'refreshServerShow' => 'refresh',
];
}
@@ -151,6 +151,12 @@ class Show extends Component
}
}
+ public function refresh()
+ {
+ $this->syncData();
+ $this->dispatch('$refresh');
+ }
+
public function validateServer($install = true)
{
try {