diff --git a/build.sh b/build.sh index 20830dc5..2a355a8b 100755 --- a/build.sh +++ b/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 \ No newline at end of file diff --git a/gui/app/components/document/page-heading.js b/gui/app/components/document/page-heading.js index a1c4d699..22dbea43 100644 --- a/gui/app/components/document/page-heading.js +++ b/gui/app/components/document/page-heading.js @@ -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'); }), diff --git a/gui/app/mixins/modal.js b/gui/app/mixins/modal.js index 315375fc..2335513d 100644 --- a/gui/app/mixins/modal.js +++ b/gui/app/mixins/modal.js @@ -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 diff --git a/gui/app/pods/document/index/controller.js b/gui/app/pods/document/index/controller.js index dd461fcb..9d507467 100644 --- a/gui/app/pods/document/index/controller.js +++ b/gui/app/pods/document/index/controller.js @@ -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); + }); }); }); }, diff --git a/server/routing/table.go b/server/routing/container.go similarity index 100% rename from server/routing/table.go rename to server/routing/container.go