Fix: wire:poll nur innerhalb @if($starting) – kein dauerhafter Poll

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.331
boban 2026-04-26 20:49:06 +02:00
parent 79b1eeb93c
commit 0fc6ee81d6
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
<x-slot:breadcrumbParent>Sicherheit</x-slot:breadcrumbParent>
<x-slot:breadcrumb>Virenschutz</x-slot:breadcrumb>
<div @if($starting) wire:poll.3s="pollStatus" @endif>
<div>
<div class="mbx-page-header">
<div class="mbx-page-title">
@ -45,7 +45,7 @@
<span style="font-size:12.5px;color:#e2d9fa;font-weight:500" wire:loading wire:target="install">ClamAV wird installiert… (ca. 1 Min.)</span>
</div>
@if($starting)
<div style="position:absolute;inset:0;background:rgba(0,0,0,.45);border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:10">
<div wire:poll.3s="pollStatus" style="position:absolute;inset:0;background:rgba(0,0,0,.45);border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;z-index:10">
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" style="color:#a78bfa;animation:spin 1s linear infinite"><path d="M12 2v4M12 18v4M4.93 4.93l2.83 2.83M16.24 16.24l2.83 2.83M2 12h4M18 12h4M4.93 19.07l2.83-2.83M16.24 7.76l2.83-2.83" stroke="currentColor" stroke-width="2" stroke-linecap="round"/></svg>
<span style="font-size:12.5px;color:#e2d9fa;font-weight:500">ClamAV wird gestartet… (lädt Viren-DB)</span>
<span style="font-size:11px;color:rgba(226,217,250,.6)">Das kann bis zu 60 Sekunden dauern</span>