fix(ui): server metrics charts were not loading after enabling metrics

This commit is contained in:
ShadowArcanist 2026-04-14 19:05:40 +05:30
parent 65ca7e2df3
commit 2a5e1f4838
No known key found for this signature in database

View file

@ -43,6 +43,7 @@ public function toggleMetrics()
if ($this->server->isMetricsEnabled()) {
StartSentinel::run($this->server, true);
$this->dispatch('success', 'Metrics enabled. Restarting Sentinel.');
$this->redirect(route('server.metrics', ['server_uuid' => $this->server->uuid]), navigate: true);
} else {
$this->server->restartSentinel();
$this->dispatch('success', 'Metrics disabled. Restarting Sentinel.');