Resolved Svelte check errors and modernized component event handling.
Implemented Svelte 5 callback props (onsuccess, oncancel) for Badge create and upload forms, replacing legacy dispatchers. Updated the AE Field Editor to accept an optional 'id' prop, resolving property mismatch errors. Updated the Event Settings page to use the new callback prop interface, clearing type assignment errors reported by 'npm run check'.
This commit is contained in:
@@ -411,10 +411,10 @@
|
||||
<h3 class="h3">Create New Badge</h3>
|
||||
<Comp_badge_create_form
|
||||
{event_id}
|
||||
on:success={() => {
|
||||
onsuccess={() => {
|
||||
show_create_badge_modal = false;
|
||||
}}
|
||||
on:cancel={() => (show_create_badge_modal = false)}
|
||||
oncancel={() => (show_create_badge_modal = false)}
|
||||
/>
|
||||
</div>
|
||||
</Modal>
|
||||
@@ -426,10 +426,10 @@
|
||||
<h3 class="h3">Upload Badges (CSV)</h3>
|
||||
<Comp_badge_upload_form
|
||||
{event_id}
|
||||
on:success={() => {
|
||||
onsuccess={() => {
|
||||
show_upload_badge_modal = false;
|
||||
}}
|
||||
on:cancel={() => (show_upload_badge_modal = false)}
|
||||
oncancel={() => (show_upload_badge_modal = false)}
|
||||
/>
|
||||
</div>
|
||||
</Modal>
|
||||
|
||||
Reference in New Issue
Block a user