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;
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 {