Clean up to get ready for CMSC and LCI.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user