refactor server view (phuuu)

This commit is contained in:
Andras Bacsai committed 2024-10-30 20:03:30 +01:00
1 parent ee79faf542
commit 96ca72fcdb
38 files changed
+1365 -893

No files matched your search

+9
View File
@@ -19,6 +19,15 @@ class Charts extends Component
public bool $poll = true;
public function mount(string $server_uuid)
{
try {
$this->server = Server::ownedByCurrentTeam()->whereUuid($server_uuid)->firstOrFail();
} catch (\Throwable $e) {
return handleError($e, $this);
}
}
public function pollData()
{
if ($this->poll || $this->interval <= 10) {