feat: added UI for configuration template in recipe settings
Some checks are pending
tests / ci (push) Waiting to run

This commit is contained in:
Benjamin Nussbaum 2026-02-11 22:16:21 +01:00
parent 49222838c4
commit 4e345c493d
8 changed files with 262 additions and 9 deletions

View file

@ -2,6 +2,7 @@
use App\Models\Plugin;
use Illuminate\Support\Facades\Http;
use Livewire\Attributes\On;
use Livewire\Component;
/*
@ -54,12 +55,22 @@ new class extends Component
/**
* Triggered by @close on the modal to discard any typed but unsaved changes
*/
public int $resetIndex = 0; // Add this property
public int $resetIndex = 0;
/**
* When recipe settings (or this modal) save, reload so Configuration Fields form stays in sync.
*/
#[On('config-updated')]
public function refreshFromParent(): void
{
$this->loadData();
$this->resetIndex++;
}
public function resetForm(): void
{
$this->loadData();
++$this->resetIndex; // Increment to force DOM refresh
++$this->resetIndex;
}
public function saveConfiguration()