Making progress on pulling this together.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user