Skip to content
Snippets Groups Projects
Verified Commit 9d01af8b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Show additional button on Celery progress page only if task doesn't fail

parent 82af2006
No related branches found
No related tags found
1 merge request!848Resolve "PDF files offered for download despite of error"
......@@ -47,6 +47,7 @@ function customSuccess(progressBarElement, progressBarMessageElement) {
$("#result-icon").text("check_circle");
$("#result-text").text(OPTIONS.success);
$("#result-box").show();
$("#result-button").show();
const redirect = "redirect_on_success" in OPTIONS && OPTIONS.redirect_on_success;
if (redirect) {
window.location.replace(OPTIONS.redirect_on_success);
......
......@@ -47,7 +47,7 @@
{% trans "Go back" %}
</a>
{% if additional_button %}
<a class="btn waves-effect waves-light" href="{{ additional_button.href }}">
<a class="btn waves-effect waves-light" href="{{ additional_button.href }}" id="result-button" style="display: none;">
<i class="material-icons left">{{ additional_button.icon|default:"" }}</i>
{{ additional_button.caption }}
</a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment