Fix: displayLatest nur anzeigen wenn tatsächlich Update verfügbar (kein Stale-Cache-Anzeige)
parent
20c9100226
commit
14901a40e3
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue