mirror of
https://github.com/documize/community.git
synced 2025-07-22 06:39:43 +02:00
Save smart sections correctly post callback refactoring
This commit is contained in:
parent
adef6dfffa
commit
c0d70e38de
6 changed files with 18 additions and 16 deletions
|
@ -280,16 +280,13 @@ export default Component.extend(TooltipMixin, {
|
|||
return;
|
||||
}
|
||||
|
||||
let page = {
|
||||
documentId: this.get('document.id'),
|
||||
title: `${block.get('title')}`,
|
||||
level: 1,
|
||||
sequence: 1024,
|
||||
body: block.get('body'),
|
||||
contentType: block.get('contentType'),
|
||||
pageType: block.get('pageType'),
|
||||
blockId: block.get('id')
|
||||
};
|
||||
let page = models.PageModel.create();
|
||||
page.set('documentId', this.get('document.id'));
|
||||
page.set('title', `${block.get('title')}`);
|
||||
page.set('body', block.get('body'));
|
||||
page.set('contentType', block.get('contentType'));
|
||||
page.set('pageType', block.get('pageType'));
|
||||
page.set('blockId', block.get('id'));
|
||||
|
||||
let meta = {
|
||||
documentId: this.get('document.id'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue