feat(events): reorganize badge admin tools and enhance dependency tracking
- Migrated 'Add New Badge' and 'Upload Badge List' to centralized Event Settings hub. - Secured Admin Tools visibility with Administrator access and Edit Mode requirements. - Restored and modernized Badge Template management route with Svelte 5 runes. - Patched 'Archive' and 'Session' database interfaces to resolve compiler errors. - Added project-wide dependency comments to key interfaces (Archive, Badge, Session) to prevent cascading change regressions. - Fixed duplicate import errors in the Settings page.
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
events__locations?: boolean; // event_id
|
||||
// export let events__presenter_id: null|string = null; // event_presenter_id
|
||||
events__reports?: boolean; // event_id
|
||||
events__settings?: boolean; // event_id
|
||||
events__session_id?: null | string; // event_session_id
|
||||
events__session_search?: boolean; // event_id
|
||||
}
|
||||
@@ -31,6 +32,7 @@
|
||||
events__location_id = null,
|
||||
events__locations = false,
|
||||
events__reports = false,
|
||||
events__settings = false,
|
||||
events__session_id = null,
|
||||
events__session_search = false
|
||||
}: Props = $props();
|
||||
@@ -66,6 +68,14 @@
|
||||
<span class="fas fa-map-marked-alt m-1"></span>
|
||||
Locations
|
||||
</a>
|
||||
<a
|
||||
href="/events/{event_id}/settings"
|
||||
class="btn btn-sm mx-1 ae_btn_warning"
|
||||
class:hidden={!events__settings}
|
||||
>
|
||||
<span class="fas fa-tools m-1"></span>
|
||||
Admin Tools
|
||||
</a>
|
||||
</span>
|
||||
|
||||
<span
|
||||
|
||||
Reference in New Issue
Block a user