Now with the ability to clone template entries

This commit is contained in:
Scott Idem
2025-04-02 12:56:08 -04:00
parent 0e72d27dbd
commit b4f2be0f13
9 changed files with 184 additions and 189 deletions

View File

@@ -23,48 +23,6 @@ export async function load({ params, parent }) {
console.log(`ae_acct = `, ae_acct);
}
// let note_id = ae_acct.slct.note_id; // From root +layout.ts
// if (!note_id) {
// console.log(`ERROR: journals +layout.ts: The note_id was not found in the parent_data!!!`);
// // return false;
// }
// let ae_params = {};
// if (browser) {
// if (note_id) {
// let load_note_obj_li = journals_func.load_ae_obj_li__note({
// api_cfg: ae_acct.api,
// for_obj_type: 'account',
// for_obj_id: account_id,
// enabled: 'enabled',
// hidden: 'not_hidden',
// limit: 20,
// // order_by_li: {},
// params: ae_params,
// try_cache: true,
// log_lvl: log_lvl
// });
// ae_acct.slct.note_obj_li = load_note_obj_li;
// }
// }
// let load_note_obj = journals_func.load_ae_obj_id__note({
// api_cfg: ae_acct.api,
// note_id: note_id,
// try_cache: false
// });
// ae_acct.slct.note_obj = load_note_obj;
// if (browser) {
// console.log(`Browser: ${browser}`);
// journals_func.db_save_ae_obj_li__note({
// obj_type: 'note',
// obj_li: [load_note_obj_li],
// });
// }
// let submenu = {
// main: {name: 'Main', href: '/journals', access: false},
// // manage: {name: 'Manage', href: '/journals/manage', access: 'administrator', disable: true, hide: true},