fix: Update event settings forms for Svelte 5 reactivity
Corrected event settings components to use Svelte 5 bindable props for two-way data binding. This ensures that changes in child form components (ae_comp__event_settings_form.svelte, ae_comp__event_settings_pres_mgmt_form.svelte) are reactively reflected in the parent page (settings/+page.svelte) and properly handled during save operations.
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
<div>
|
||||
<h2 class="h2">General Config (cfg_json)</h2>
|
||||
<Ae_comp_event_settings_form
|
||||
cfg_json={event_obj.cfg_json}
|
||||
bind:cfg_json={event_obj.cfg_json}
|
||||
on:save={(e) => handle_save('cfg_json', e.detail)}
|
||||
/>
|
||||
</div>
|
||||
@@ -58,7 +58,7 @@
|
||||
<div>
|
||||
<h2 class="h2">Presentation Management (mod_pres_mgmt_json)</h2>
|
||||
<Ae_comp_event_settings_pres_mgmt_form
|
||||
mod_pres_mgmt_json={event_obj.mod_pres_mgmt_json}
|
||||
bind:mod_pres_mgmt_json={event_obj.mod_pres_mgmt_json}
|
||||
on:save={(e) => handle_save('mod_pres_mgmt_json', e.detail)}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user