From fa99cbce4aec0f9432845cb2def17c9657013253 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 19 Jun 2024 10:33:34 +0200 Subject: [PATCH] do not load charts on mount --- app/Livewire/Charts/ServerCpu.php | 5 ----- app/Livewire/Charts/ServerMemory.php | 5 ----- resources/views/livewire/charts/server-cpu.blade.php | 2 +- resources/views/livewire/charts/server-memory.blade.php | 2 +- 4 files changed, 2 insertions(+), 12 deletions(-) diff --git a/app/Livewire/Charts/ServerCpu.php b/app/Livewire/Charts/ServerCpu.php index 50a7e115e..5f3283009 100644 --- a/app/Livewire/Charts/ServerCpu.php +++ b/app/Livewire/Charts/ServerCpu.php @@ -24,11 +24,6 @@ public function render() return view('livewire.charts.server-cpu'); } - public function mount() - { - $this->loadData(); - } - public function pollData() { if ($this->poll || $this->interval <= 10) { diff --git a/app/Livewire/Charts/ServerMemory.php b/app/Livewire/Charts/ServerMemory.php index 15a2345f5..911f267f6 100644 --- a/app/Livewire/Charts/ServerMemory.php +++ b/app/Livewire/Charts/ServerMemory.php @@ -34,11 +34,6 @@ public function pollData() } } - public function mount() - { - $this->loadData(); - } - public function loadData() { try { diff --git a/resources/views/livewire/charts/server-cpu.blade.php b/resources/views/livewire/charts/server-cpu.blade.php index eaa2d3c08..8ecb65b4f 100644 --- a/resources/views/livewire/charts/server-cpu.blade.php +++ b/resources/views/livewire/charts/server-cpu.blade.php @@ -1,4 +1,4 @@ -
+

CPU

diff --git a/resources/views/livewire/charts/server-memory.blade.php b/resources/views/livewire/charts/server-memory.blade.php index 40404fdae..522fa6bb6 100644 --- a/resources/views/livewire/charts/server-memory.blade.php +++ b/resources/views/livewire/charts/server-memory.blade.php @@ -1,4 +1,4 @@ -
+

Memory