Making progress on pulling this together.

This commit is contained in:
Scott Idem
2024-02-16 21:38:41 -05:00
parent 9958724aaa
commit bab68af7dc
6 changed files with 61 additions and 863 deletions

View File

@@ -2,6 +2,8 @@
export let data;
console.log(`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';
@@ -25,6 +27,23 @@ const modal_edit__sponsorship_obj: ModalSettings = {
title: 'Edit Your Sponsorship',
};
onMount(() => {
console.log('Sponsorships [New/Edit]: +page.svelte');
console.log(`$ae_loc = `, $ae_loc);
let url = window.location.href;
console.log(url);
$ae_loc.href_url = url;
console.log(`$ae_loc.href_url = `, $ae_loc.href_url);
});
// console.log(`$ae_loc = `, $ae_loc);
// $ae_loc.href_url = url;
// console.log(`$ae_loc.href_url = `, $ae_loc.href_url);
// $ae_loc.mod.sponsorships.show_edit__sponsorship_obj = true;
$slct.sponsorship_id = data.url.searchParams.get('ae_id');