mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 01:12:27 +00:00
Account for the new too-recently-compiled error.
This commit is contained in:
parent
53dfa841cc
commit
f58f1c3795
2 changed files with 9 additions and 2 deletions
|
@ -76,7 +76,7 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
i.split-screen
|
||||
// end of toolbar
|
||||
|
||||
.pdf-viewer(ng-show="pdf.url && pdf.view == 'pdf' && !pdf.failure && !pdf.timeout && !pdf.error && !pdf.renderingError && !pdf.clsiMaintenance")
|
||||
.pdf-viewer(ng-show="pdf.url && pdf.view == 'pdf' && !pdf.failure && !pdf.timeout && !pdf.error && !pdf.renderingError && !pdf.clsiMaintenance && !pdf.tooRecentlyCompiled")
|
||||
div(
|
||||
pdfng
|
||||
ng-if="settings.pdfViewer == 'pdfjs'"
|
||||
|
@ -98,7 +98,7 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
i.fa.fa-level-up.fa-flip-horizontal.fa-2x
|
||||
| #{translate('click_here_to_preview_pdf')}
|
||||
|
||||
.pdf-errors(ng-show="(pdf.timedout || pdf.error || pdf.renderingError || pdf.clsiMaintenance) && pdf.view != 'logs'")
|
||||
.pdf-errors(ng-show="(pdf.timedout || pdf.error || pdf.renderingError || pdf.clsiMaintenance || pdf.tooRecentlyCompiled) && pdf.view != 'logs'")
|
||||
.alert.alert-danger(ng-show="pdf.error || pdf.renderingError")
|
||||
strong #{translate("server_error")}
|
||||
span #{translate("somthing_went_wrong_compiling")}
|
||||
|
@ -107,6 +107,10 @@ div.full-size.pdf(ng-controller="PdfController")
|
|||
strong #{translate("server_error")}
|
||||
span #{translate("clsi_maintenance")}
|
||||
|
||||
.alert.alert-danger(ng-show="pdf.tooRecentlyCompiled")
|
||||
strong #{translate("server_error")}
|
||||
span #{translate("too_recently_compiled")}
|
||||
|
||||
.alert.alert-danger(ng-show="pdf.timedout")
|
||||
p
|
||||
strong #{translate("timedout")}.
|
||||
|
|
|
@ -38,6 +38,7 @@ define [
|
|||
$scope.pdf.projectTooLarge = false
|
||||
$scope.pdf.url = null
|
||||
$scope.pdf.clsiMaintenance = false
|
||||
$scope.pdf.tooRecentlyCompiled = false
|
||||
|
||||
if response.status == "timedout"
|
||||
$scope.pdf.timedout = true
|
||||
|
@ -50,6 +51,8 @@ define [
|
|||
fetchLogs()
|
||||
else if response.status == 'clsi-maintenance'
|
||||
$scope.pdf.clsiMaintenance = true
|
||||
else if response.status == "too-recently-compiled"
|
||||
$scope.pdf.tooRecentlyCompiled = true
|
||||
else if response.status == "success"
|
||||
# define the base url
|
||||
$scope.pdf.url = "/project/#{$scope.project_id}/output/output.pdf?cache_bust=#{Date.now()}"
|
||||
|
|
Loading…
Reference in a new issue