Merge pull request #1607 from sharelatex/spd-succserror

Don't show 'No errors' message if PDF generation fails

GitOrigin-RevId: 7ed454b489dcef419c51f48b6c5b3920d5558a79
This commit is contained in:
Timothée Alby 2019-03-14 10:48:37 -05:00 committed by sharelatex
parent 970ca2e122
commit 1edf1964c8

View file

@ -129,7 +129,7 @@ div.full-size.pdf(ng-controller="PdfController")
// logs view // logs view
.pdf-logs(ng-show="shouldShowLogs") .pdf-logs(ng-show="shouldShowLogs")
.alert.alert-success(ng-show="pdf.logEntries.all.length == 0") .alert.alert-success(ng-show="pdf.logEntries.all.length == 0 && !pdf.failure")
| #{translate("no_errors_good_job")} | #{translate("no_errors_good_job")}
.alert.alert-danger(ng-show="pdf.failure") .alert.alert-danger(ng-show="pdf.failure")