Fix: Livewire NoModificationAllowedError im Setup-Wizard Step 5

wire:poll Div war bedingt gerendert – beim Entfernen aus dem DOM
versuchte Livewire noch es zu patchen → outerHTML Fehler.
Div bleibt jetzt immer im DOM, pollSetup() kehrt früh zurück wenn fertig.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
main v1.1.165
boban 2026-04-24 14:55:18 +02:00
parent 660402a32d
commit 73bda08244
2 changed files with 3 additions and 3 deletions

View File

@ -169,6 +169,8 @@ class Wizard extends Component
public function pollSetup(): void
{
if ($this->setupDone) return;
foreach (['ui', 'mail', 'webmail'] as $key) {
$file = self::STATE_DIR . "/{$key}";
$this->domainStatus[$key] = is_readable($file)

View File

@ -163,9 +163,7 @@
{{-- ── Schritt 5: Domain-Setup ── --}}
@elseif($step === 5)
@if(!$setupDone)
<div wire:poll.2s="pollSetup"></div>
@endif
<div wire:poll.2s="pollSetup"></div>
@php
$anyFailed = collect($domainStatus)->contains(fn($s) => in_array($s, ['error','nodns','noipv6']));