mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29: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
|
done
|
||||||
|
|
||||||
echo "Finished."
|
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: "",
|
blockExcerpt: "",
|
||||||
documentList: A([]), //includes the current document
|
documentList: A([]), //includes the current document
|
||||||
documentListOthers: A([]), //excludes the current document
|
documentListOthers: A([]), //excludes the current document
|
||||||
|
|
||||||
hasMenuPermissions: computed('permissions', function() {
|
hasMenuPermissions: computed('permissions', function() {
|
||||||
let permissions = this.get('permissions');
|
let permissions = this.get('permissions');
|
||||||
|
|
||||||
return permissions.get('documentDelete') || permissions.get('documentCopy') ||
|
return permissions.get('documentDelete') || permissions.get('documentCopy') ||
|
||||||
permissions.get('documentMove') || permissions.get('documentTemplate');
|
permissions.get('documentMove') || permissions.get('documentTemplate');
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -10,7 +10,6 @@
|
||||||
// https://documize.com
|
// https://documize.com
|
||||||
|
|
||||||
import Mixin from '@ember/object/mixin';
|
import Mixin from '@ember/object/mixin';
|
||||||
import { schedule } from '@ember/runloop';
|
|
||||||
|
|
||||||
// ID values expected format:
|
// ID values expected format:
|
||||||
// modal: #document-template-modal
|
// modal: #document-template-modal
|
||||||
|
|
|
@ -67,12 +67,16 @@ export default Controller.extend(TooltipMixin, {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.get('documentService').updatePage(documentId, page.get('id'), model).then((up) => {
|
this.get('documentService').updatePage(documentId, page.get('id'), model).then((up) => {
|
||||||
page = up;
|
this.set('pageId', up.get('id'));
|
||||||
this.set('pageId', page.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.get('linkService').getDocumentLinks(this.get('document.id')).then((links) => {
|
||||||
this.set('links', links);
|
this.set('links', links);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onPageDeleted(deletePage) {
|
onPageDeleted(deletePage) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue