1
0
Fork 0
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:
Harvey Kandola 2017-12-18 09:54:09 +00:00
parent 1ed6427532
commit 3337db6b27
5 changed files with 13 additions and 7 deletions

View file

@ -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);
});
});
});
},