fix(ui): server metrics charts were not loading after enabling metrics
This commit is contained in:
parent
65ca7e2df3
commit
2a5e1f4838
1 changed files with 1 additions and 0 deletions
|
|
@ -43,6 +43,7 @@ public function toggleMetrics()
|
||||||
if ($this->server->isMetricsEnabled()) {
|
if ($this->server->isMetricsEnabled()) {
|
||||||
StartSentinel::run($this->server, true);
|
StartSentinel::run($this->server, true);
|
||||||
$this->dispatch('success', 'Metrics enabled. Restarting Sentinel.');
|
$this->dispatch('success', 'Metrics enabled. Restarting Sentinel.');
|
||||||
|
$this->redirect(route('server.metrics', ['server_uuid' => $this->server->uuid]), navigate: true);
|
||||||
} else {
|
} else {
|
||||||
$this->server->restartSentinel();
|
$this->server->restartSentinel();
|
||||||
$this->dispatch('success', 'Metrics disabled. Restarting Sentinel.');
|
$this->dispatch('success', 'Metrics disabled. Restarting Sentinel.');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue