|
|
@ -49,6 +49,9 @@ export default class Book {
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
//TODO: Duct tape solution until something better created
|
|
|
|
//TODO: Duct tape solution until something better created
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//make check against menu to see if page should be marked as menu item
|
|
|
|
|
|
|
|
//if it doesnt' exist in menu change, edit page to
|
|
|
|
let page = _.find(pages, list => {
|
|
|
|
let page = _.find(pages, list => {
|
|
|
|
return list.metadata.uuid === id;
|
|
|
|
return list.metadata.uuid === id;
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -89,9 +92,9 @@ export default class Book {
|
|
|
|
moment(body.created).format('YYYY') +
|
|
|
|
moment(body.created).format('YYYY') +
|
|
|
|
'/' +
|
|
|
|
'/' +
|
|
|
|
moment(body.created).format('MM');
|
|
|
|
moment(body.created).format('MM');
|
|
|
|
nav.editMenu(DataEvent.MENU_ADD_ITEM, body);
|
|
|
|
nav.editMenu(DataEvent.MENU_ADD_ITEM, body, user);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
nav.editMenu(DataEvent.MENU_DELETE_ITEM, body);
|
|
|
|
nav.editMenu(DataEvent.MENU_DELETE_ITEM, body, user);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (body.layout !== 'page') layout = body.layout;
|
|
|
|
if (body.layout !== 'page') layout = body.layout;
|
|
|
|
if (body.layout === null || body.layout === 'null') layout = 'page';
|
|
|
|
if (body.layout === null || body.layout === 'null') layout = 'page';
|
|
|
|