Clean up to get ready for CMSC and LCI.

This commit is contained in:
Scott Idem
2025-05-22 13:27:23 -04:00
parent 15d417ba52
commit 6b585090d0
4 changed files with 22 additions and 47 deletions

View File

@@ -24,10 +24,10 @@ export async function load({ parent }) {
}
let event_id = ae_acct.slct.event_id; // From root +layout.ts
if (!event_id) {
console.log(`ERROR: events_pres_mgmt +layout.ts: The event_id was not found in the data!!!`);
return false;
}
// if (!event_id) {
// console.log(`ERROR: events_pres_mgmt +layout.ts: The event_id was not found in the data!!!`);
// return false;
// }
if (browser) {
if (log_lvl) {
@@ -55,12 +55,12 @@ export async function load({ parent }) {
// ae_acct.slct.event_obj = load_event_obj;
let submenu = {
main: {name: 'Main', href: '/events_pres_mgmt', access: false},
// manage: {name: 'Manage', href: '/events_pres_mgmt/manage', access: 'administrator', disable: true, hide: true},
locations: {name: 'Locations', href: `/events/${event_id}/locations`, access: false, disable: false, hide: false},
};
data.submenu = submenu
// let submenu = {
// main: {name: 'Main', href: '/events_pres_mgmt', access: false},
// // manage: {name: 'Manage', href: '/events_pres_mgmt/manage', access: 'administrator', disable: true, hide: true},
// locations: {name: 'Locations', href: `/events/${event_id}/locations`, access: false, disable: false, hide: false},
// };
// data.submenu = submenu
// WARNING: Precaution against shared data between sites and sessions.
data[account_id] = ae_acct;