mirror of
https://github.com/documize/community.git
synced 2025-07-19 05:09:42 +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
5
build.sh
5
build.sh
|
@ -50,3 +50,8 @@ for arch in amd64 ; do
|
|||
done
|
||||
|
||||
echo "Finished."
|
||||
|
||||
|
||||
# CGO_ENABLED=0 GOOS=linux go build -a -ldflags="-s -w" -installsuffix cgo
|
||||
# go build -ldflags '-d -s -w' -a -tags netgo -installsuffix netgo test.go
|
||||
# ldd test
|
|
@ -22,10 +22,8 @@ export default Component.extend(ModalMixin, {
|
|||
blockExcerpt: "",
|
||||
documentList: A([]), //includes the current document
|
||||
documentListOthers: A([]), //excludes the current document
|
||||
|
||||
hasMenuPermissions: computed('permissions', function() {
|
||||
let permissions = this.get('permissions');
|
||||
|
||||
return permissions.get('documentDelete') || permissions.get('documentCopy') ||
|
||||
permissions.get('documentMove') || permissions.get('documentTemplate');
|
||||
}),
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
// https://documize.com
|
||||
|
||||
import Mixin from '@ember/object/mixin';
|
||||
import { schedule } from '@ember/runloop';
|
||||
|
||||
// ID values expected format:
|
||||
// modal: #document-template-modal
|
||||
|
|
|
@ -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