Merge pull request #4133 from overleaf/ae-project-too-large

Display project-too-large error

GitOrigin-RevId: 9078b4f24d3380a4554f9fd91fe0254524763830
This commit is contained in:
Alf Eaton 2021-06-10 12:26:45 +01:00 committed by Copybot
parent 3ab0aee30c
commit 8b40e760ca
5 changed files with 7 additions and 1 deletions

View file

@ -394,7 +394,7 @@ div.full-size.pdf(ng-controller="PdfController")
.alert.alert-danger(ng-show="pdf.projectTooLarge")
strong #{translate("project_too_large")}
span #{translate("project_too_large_please_reduce")}
span #{translate("project_too_much_editable_text")}
script(type='text/ng-template', id='clearCacheModalTemplate')

View file

@ -232,6 +232,7 @@
"project_synced_with_git_repo_at": "",
"project_too_large": "",
"project_too_large_please_reduce": "",
"project_too_much_editable_text": "",
"public": "",
"pull_github_changes_into_sharelatex": "",
"push_sharelatex_changes_to_github": "",

View file

@ -57,6 +57,9 @@ function PreviewError({ name }) {
} else if (name === 'autoCompileDisabled') {
errorTitle = t('autocompile_disabled')
errorContent = <>{t('autocompile_disabled_reason')}</>
} else if (name === 'projectTooLarge') {
errorTitle = t('project_too_large')
errorContent = <>{t('project_too_much_editable_text')}</>
}
return errorTitle ? (

View file

@ -522,6 +522,7 @@ App.controller(
$scope.pdf.rateLimited ? { rateLimited: true } : null,
$scope.pdf.compileInProgress ? { compileInProgress: true } : null,
$scope.pdf.timedout ? { timedout: true } : null,
$scope.pdf.projectTooLarge ? { projectTooLarge: true } : null,
$scope.pdf.autoCompileDisabled ? { autoCompileDisabled: true } : null
)

View file

@ -1215,6 +1215,7 @@
"sync_to_dropbox_and_github": "Sync to Dropbox and GitHub",
"project_too_large": "Project too large",
"project_too_large_please_reduce": "This project has too much editable text, please try and reduce it. The largest files are:",
"project_too_much_editable_text": "This project has too much editable text, please try to reduce it.",
"please_ask_the_project_owner_to_link_to_github": "Please ask the project owner to link this project to a GitHub repository",
"go_to_pdf_location_in_code": "Go to PDF location in code",
"ko": "Korean",