From 14901a40e327027428e7bad9be1de56ce034df98 Mon Sep 17 00:00:00 2001 From: boban Date: Mon, 27 Apr 2026 02:30:46 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20displayLatest=20nur=20anzeigen=20wenn=20?= =?UTF-8?q?tats=C3=A4chlich=20Update=20verf=C3=BCgbar=20(kein=20Stale-Cach?= =?UTF-8?q?e-Anzeige)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Livewire/Ui/System/UpdateCard.php | 4 +++- app/Livewire/Ui/System/UpdatePage.php | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/Livewire/Ui/System/UpdateCard.php b/app/Livewire/Ui/System/UpdateCard.php index 8d04fc0..88c3446 100644 --- a/app/Livewire/Ui/System/UpdateCard.php +++ b/app/Livewire/Ui/System/UpdateCard.php @@ -249,7 +249,9 @@ class UpdateCard extends Component $this->displayCurrent = $curNorm ? 'v' . $curNorm : null; - if (!$this->displayLatest && $latNorm) { + if (!$this->hasUpdate) { + $this->displayLatest = null; + } elseif (!$this->displayLatest && $latNorm) { $this->displayLatest = 'v' . $latNorm; } } diff --git a/app/Livewire/Ui/System/UpdatePage.php b/app/Livewire/Ui/System/UpdatePage.php index 549c4d9..27813e7 100644 --- a/app/Livewire/Ui/System/UpdatePage.php +++ b/app/Livewire/Ui/System/UpdatePage.php @@ -194,7 +194,9 @@ class UpdatePage extends Component $this->displayCurrent = $curNorm ? 'v' . $curNorm : null; - if (!$this->displayLatest && $latNorm) { + if (!$this->hasUpdate) { + $this->displayLatest = null; + } elseif (!$this->displayLatest && $latNorm) { $this->displayLatest = 'v' . $latNorm; } }