diff --git a/app/app/templates/components/document/document-sidebar.hbs b/app/app/templates/components/document/document-sidebar.hbs index 97279466..005e9f05 100644 --- a/app/app/templates/components/document/document-sidebar.hbs +++ b/app/app/templates/components/document/document-sidebar.hbs @@ -27,6 +27,8 @@ {{#dropdown-dialog target="meta-button-history" position="bottom left" showCancel=false button="Close" onAction=(action 'close') color="flat-gray"}} {{document/document-sidebar-edits pages=pages meta=meta}} {{/dropdown-dialog}} + {{else}} +
{{/if}} {{document/document-sidebar-toc document=model folder=folder pages=pages page=page isEditor=isEditor changePageSequence=(action 'onPageSequenceChange') changePageLevel=(action 'onPageLevelChange') diff --git a/app/mirage/config.js b/app/mirage/config.js index 8dd23999..40501d1f 100644 --- a/app/mirage/config.js +++ b/app/mirage/config.js @@ -129,7 +129,7 @@ export default function () { let authorization = request.requestHeaders.Authorization; let expectedAuthorization = "Basic OmJyaXpkaWdpdGFsQGdtYWlsLmNvbTp6aW55YW5kbzEyMw=="; - if (expectedAuthorization == authorization) { + if (expectedAuthorization === authorization) { console.log("SSO login success"); return { "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkb21haW4iOiIiLCJleHAiOjE0NjQwMjM2NjcsImlzcyI6IkRvY3VtaXplIiwib3JnIjoiVnpNdXlFd18zV3FpYWZjRCIsInN1YiI6IndlYmFwcCIsInVzZXIiOiJWek11eUV3XzNXcWlhZmNFIn0.NXZ6bo8mtvdZF_b9HavbidVUJqhmBA1zr0fSAPvbah0", @@ -161,7 +161,7 @@ export default function () { }; } - if (expectedAuthorization != authorization) { + if (expectedAuthorization !== authorization) { return new Mirage.Response(401, { 'Content-Type': 'application/json' }, { message: 'Bad Request' }); } @@ -445,4 +445,4 @@ export default function () { return {}; }); -} +} \ No newline at end of file diff --git a/documize/api/endpoint/router.go b/documize/api/endpoint/router.go index f5255202..9d844a5d 100644 --- a/documize/api/endpoint/router.go +++ b/documize/api/endpoint/router.go @@ -28,8 +28,8 @@ import ( const ( // AppVersion does what it says - // Versioning scheme: http://semver.org - AppVersion = "1.0.0" + // Note: versioning scheme is not http://semver.org + AppVersion = "0.14.0" ) var port, certFile, keyFile, forcePort2SSL string