Improvements and other minor fixes. Wrapping up for the night.
This commit is contained in:
@@ -48,6 +48,7 @@ if (browser) {
|
||||
}
|
||||
|
||||
if ($idaa_loc.bb.edit__post_obj) {
|
||||
obj_changed = true; // This is an odd workaround to make new posts saveable.
|
||||
$idaa_sess.bb.edit__post_obj = $idaa_loc.bb.edit__post_obj;
|
||||
$idaa_loc.bb.edit__post_obj = false;
|
||||
}
|
||||
|
||||
@@ -141,6 +141,8 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
return false;
|
||||
}
|
||||
|
||||
$idaa_slct.post_obj = {};
|
||||
|
||||
let data_kv = {
|
||||
external_person_id: $idaa_loc.novi_uuid,
|
||||
title: 'Change Me',
|
||||
@@ -161,6 +163,9 @@ if (log_lvl) console.log('** Component Loaded: ** Post Options');
|
||||
console.log('New post created:', results);
|
||||
}
|
||||
$idaa_slct.post_id = results?.post_id_random;
|
||||
$idaa_slct.post_obj = {
|
||||
...results
|
||||
};
|
||||
$idaa_sess.bb.edit__post_obj = $idaa_slct.post_id;
|
||||
$idaa_loc.bb.edit__post_obj = $idaa_slct.post_id;
|
||||
// if (!$idaa_loc.bb.edit_kv) {
|
||||
|
||||
Reference in New Issue
Block a user