Merge pull request #1362 from sharelatex/as-fix-status-page

Fixes for import status page

GitOrigin-RevId: 65c18e1c0ea981bf6e5cc8b65045566e14d5fb12
This commit is contained in:
Alasdair Smith 2019-01-08 11:42:23 +00:00 committed by sharelatex
parent c303af5d4d
commit 42cf6a1216
2 changed files with 3 additions and 14 deletions

View file

@ -145,7 +145,7 @@ module.exports = TokenAccessController =
return res.render('project/v2-import', {
projectId: token,
hasOwner: doc_info.has_owner,
name: doc_info.name,
name: doc_info.name || 'Untitled',
hasAssignment: doc_info.has_assignment,
brandInfo: doc_info.brand_info
})

View file

@ -49,19 +49,8 @@ block content
| cannot be automatically imported. Please download a zip file of
| the project and upload that to continue editing it.
form(
async-form="v2ZipDownload"
name="v2ZipDownloadForm"
async-form-download-response="true"
method="GET"
action="/overleaf/project/" + projectId + "/download/zip"
)
form-messages(form="v2ZipDownloadForm")
input.row-spaced.btn.btn-primary.text-center.center-block(
type="submit"
ng-value="v2ZipDownloadForm.inflight || v2ZipDownloadForm.success ? 'Downloading zip file...' : 'Download project zip file'"
ng-disabled="v2ZipDownloadForm.inflight || v2ZipDownloadForm.success"
)
.row-spaced.text-center
a.btn.btn-primary(href="/overleaf/project/" + projectId + "/download/zip") Download project zip file
.row-spaced.text-center
if hasAssignment