Work on expanding the routes
This commit is contained in:
40
src/routes/events_badges/+page.svelte
Normal file
40
src/routes/events_badges/+page.svelte
Normal file
@@ -0,0 +1,40 @@
|
||||
<script lang="ts">
|
||||
export let data;
|
||||
// console.log(`ae_ Svelte Events Badges +page data:`, data);
|
||||
|
||||
import { onMount } from 'svelte';
|
||||
|
||||
import { api } from '$lib/api';
|
||||
import { ae_loc, ae_sess, ae_api, slct, slct_trigger } from '$lib/ae_stores';
|
||||
import { ae_util } from '$lib/ae_utils';
|
||||
import type { key_val } from '$lib/ae_stores';
|
||||
|
||||
|
||||
onMount(() => {
|
||||
console.log('Events Badges: +page.svelte');
|
||||
|
||||
let href_url = window.location.href;
|
||||
// console.log(href_url);
|
||||
|
||||
$ae_loc.href_url = href_url;
|
||||
// console.log(`$ae_loc.href_url = `, $ae_loc.href_url);
|
||||
|
||||
// $slct_trigger = 'msg_parent';
|
||||
ae_util.handle_url_and_message('event_id', $slct.event_id);
|
||||
ae_util.handle_url_and_message('event_badge_id', $slct.event_badge_id);
|
||||
if ($slct.event_badge_id) {
|
||||
console.log(`Got an ID. Let's show the modal!`);
|
||||
modalStore.trigger(modal_edit__event_badge_obj);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<section class="ae_events_badges md:container h-full mx-auto">
|
||||
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
<style lang="postcss">
|
||||
</style>
|
||||
Reference in New Issue
Block a user