mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-12 12:13:41 +00:00
do not load charts on mount
This commit is contained in:
1 parent
07e55b2636
commit
fa99cbce4a
4 files changed
+2
-12
No files matched your search
@@ -24,11 +24,6 @@ class ServerCpu extends Component
|
||||
return view('livewire.charts.server-cpu');
|
||||
}
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$this->loadData();
|
||||
}
|
||||
|
||||
public function pollData()
|
||||
{
|
||||
if ($this->poll || $this->interval <= 10) {
|
||||
|
||||
@@ -34,11 +34,6 @@ class ServerMemory extends Component
|
||||
}
|
||||
}
|
||||
|
||||
public function mount()
|
||||
{
|
||||
$this->loadData();
|
||||
}
|
||||
|
||||
public function loadData()
|
||||
{
|
||||
try {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div @if ($poll) wire:poll.5000ms='pollData' @endif>
|
||||
<div @if ($poll) wire:poll.5000ms='pollData' @endif x-init="$wire.loadData()">
|
||||
<h3>CPU</h3>
|
||||
<x-forms.select label="Interval" wire:change="setInterval" id="interval">
|
||||
<option value="5">5 minutes (live)</option>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<div @if ($poll) wire:poll.5000ms='pollData' @endif>
|
||||
<div @if ($poll) wire:poll.5000ms='pollData' @endif x-init="$wire.loadData()">
|
||||
<h3>Memory</h3>
|
||||
<x-forms.select label="Interval" wire:change="setInterval" id="interval">
|
||||
<option value="5">5 minutes (live)</option>
|
||||
|
||||
Reference in new issue
Block a user