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
parent
660402a32d
commit
73bda08244
|
|
@ -169,6 +169,8 @@ class Wizard extends Component
|
||||||
|
|
||||||
public function pollSetup(): void
|
public function pollSetup(): void
|
||||||
{
|
{
|
||||||
|
if ($this->setupDone) return;
|
||||||
|
|
||||||
foreach (['ui', 'mail', 'webmail'] as $key) {
|
foreach (['ui', 'mail', 'webmail'] as $key) {
|
||||||
$file = self::STATE_DIR . "/{$key}";
|
$file = self::STATE_DIR . "/{$key}";
|
||||||
$this->domainStatus[$key] = is_readable($file)
|
$this->domainStatus[$key] = is_readable($file)
|
||||||
|
|
|
||||||
|
|
@ -163,9 +163,7 @@
|
||||||
|
|
||||||
{{-- ── Schritt 5: Domain-Setup ── --}}
|
{{-- ── Schritt 5: Domain-Setup ── --}}
|
||||||
@elseif($step === 5)
|
@elseif($step === 5)
|
||||||
@if(!$setupDone)
|
|
||||||
<div wire:poll.2s="pollSetup"></div>
|
<div wire:poll.2s="pollSetup"></div>
|
||||||
@endif
|
|
||||||
|
|
||||||
@php
|
@php
|
||||||
$anyFailed = collect($domainStatus)->contains(fn($s) => in_array($s, ['error','nodns','noipv6']));
|
$anyFailed = collect($domainStatus)->contains(fn($s) => in_array($s, ['error','nodns','noipv6']));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue