Display a friendly message when a report times out

Once we get a download link for a report, we can display this message
sooner. But for now we just use the existing request timeout.
This commit is contained in:
Maikel Linke
2023-03-28 10:49:07 +11:00
parent 3bd8e430f9
commit 00a3976905
4 changed files with 29 additions and 2 deletions

View File

@@ -18,7 +18,8 @@
.report__header.print-hidden
- if @report.message.present?
%p.report__message= @report.message
- if request.post?
- if request.post? && !@error
%button.btn-print.icon-print{ onclick: "window.print()"}= t(:report_print)
= t(@error) if @error
= @table