fix: server view refresh on validation

This commit is contained in:
Andras Bacsai
2024-11-05 11:52:14 +01:00
parent f9465790f7
commit 11b94e7bae

View File

@@ -85,8 +85,8 @@ class Show extends Component
$teamId = auth()->user()->currentTeam()->id; $teamId = auth()->user()->currentTeam()->id;
return [ return [
"echo-private:team.{$teamId},CloudflareTunnelConfigured" => '$refresh', "echo-private:team.{$teamId},CloudflareTunnelConfigured" => 'refresh',
'refreshServerShow' => '$refresh', 'refreshServerShow' => 'refresh',
]; ];
} }
@@ -151,6 +151,12 @@ class Show extends Component
} }
} }
public function refresh()
{
$this->syncData();
$this->dispatch('$refresh');
}
public function validateServer($install = true) public function validateServer($install = true)
{ {
try { try {