mirror of
https://github.com/tiennm99/coolify.git
synced 2026-07-12 19:04:40 +00:00
fix(ui): server metrics charts were not loading after enabling metrics
This commit is contained in:
@@ -43,6 +43,7 @@ class Charts extends Component
|
||||
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.');
|
||||
|
||||
Reference in New Issue
Block a user