Fix: UpdateCard dispatcht Toast+closeModal gleichzeitig; Fail2ban Dienst-Badge nicht gestreckt

main v1.1.428
boban 2026-04-27 05:39:02 +02:00
parent b7e411be82
commit 30d2c28504
2 changed files with 14 additions and 5 deletions

View File

@ -144,13 +144,20 @@ class UpdateCard extends Component
$ver = $this->displayCurrent ?? 'aktuelle Version'; $ver = $this->displayCurrent ?? 'aktuelle Version';
$this->progressLine = 'Update abgeschlossen: ' . $ver; $this->progressLine = 'Update abgeschlossen: ' . $ver;
$this->dispatch('toast', type: 'done', badge: 'System',
title: 'Update abgeschlossen',
text: "Mailwolt wurde auf {$ver} aktualisiert.",
duration: 6000);
$this->dispatch('closeModal');
} elseif ($this->rc !== null && $this->rc !== 0 && !$this->postActionsDone) { } elseif ($this->rc !== null && $this->rc !== 0 && !$this->postActionsDone) {
$this->postActionsDone = true; $this->postActionsDone = true;
@file_put_contents('/var/lib/mailwolt/update/state', 'complete'); @file_put_contents('/var/lib/mailwolt/update/state', 'complete');
$this->errorLine = "Update fehlgeschlagen (rc={$this->rc})."; $this->errorLine = "Update fehlgeschlagen (rc={$this->rc}).";
$this->dispatch('toast', type:'error', title:'Update fehlgeschlagen', $this->dispatch('toast', type: 'error', title: 'Update fehlgeschlagen',
text:$this->progressLine ?: 'Bitte Logs prüfen: /var/log/mailwolt-update.log', text: $this->progressLine ?: 'Bitte Logs prüfen: /var/log/mailwolt-update.log',
badge:'System', duration:0); badge: 'System', duration: 0);
$this->dispatch('closeModal');
} }
$this->state = 'idle'; $this->state = 'idle';

View File

@ -31,8 +31,10 @@
<code style="font-size:12px;color:var(--mw-t1);letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{{ $r['ip'] }}</code> <code style="font-size:12px;color:var(--mw-t1);letter-spacing:.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap">{{ $r['ip'] }}</code>
{{-- Dienst --}} {{-- Dienst --}}
<span class="f2b-jail-badge" title="{{ $r['jail'] }}" <div style="display:flex;align-items:center;overflow:hidden">
style="overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%">{{ $r['service'] }}</span> <span class="f2b-jail-badge" title="{{ $r['jail'] }}"
style="white-space:nowrap;overflow:hidden;text-overflow:ellipsis">{{ $r['service'] }}</span>
</div>
{{-- Status + Restzeit --}} {{-- Status + Restzeit --}}
<div style="display:flex;align-items:center;gap:6px;min-width:0"> <div style="display:flex;align-items:center;gap:6px;min-width:0">