mirror of
https://github.com/documize/community.git
synced 2025-07-23 07:09:43 +02:00
ensure section updates always display latest numbering
This commit is contained in:
parent
1ed6427532
commit
3337db6b27
5 changed files with 13 additions and 7 deletions
|
@ -67,10 +67,14 @@ export default Controller.extend(TooltipMixin, {
|
|||
};
|
||||
|
||||
this.get('documentService').updatePage(documentId, page.get('id'), model).then((up) => {
|
||||
page = up;
|
||||
this.set('pageId', page.get('id'));
|
||||
this.get('linkService').getDocumentLinks(this.get('document.id')).then((links) => {
|
||||
this.set('links', links);
|
||||
this.set('pageId', up.get('id'));
|
||||
|
||||
this.get('documentService').getPages(this.get('document.id')).then((pages) => {
|
||||
this.set('pages', pages);
|
||||
|
||||
this.get('linkService').getDocumentLinks(this.get('document.id')).then((links) => {
|
||||
this.set('links', links);
|
||||
});
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue