@@ -150,8 +163,12 @@
}
setStatus(status) {
- let analyseBtn, statusElement;
+ let analyseBtn, progressIndicator, statusElement;
+ if (status != "preparable" && status != "preparing") {
+ progressIndicator = document.getElementById("progress-indicator");
+ progressIndicator.classList.add("hide");
+ }
statusElement = document.getElementById("status");
statusElement.dataset.status = status;
analyseBtn = document.getElementById('analyse');
From 0ea03983d64339bba6b3d636e6bf6da840bd3395 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 12 Feb 2020 16:42:46 +0100
Subject: [PATCH 3/3] small fix
---
app/templates/jobs/job.html.j2 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/templates/jobs/job.html.j2 b/app/templates/jobs/job.html.j2
index 62de7cb0..77ea9a5d 100644
--- a/app/templates/jobs/job.html.j2
+++ b/app/templates/jobs/job.html.j2
@@ -233,7 +233,6 @@
`
);
}
- M.Collapsible.getInstance(document.getElementById("job-list")).open(1);
}
setStatus(status) {
@@ -241,6 +240,7 @@
if (status === "complete") {
progressIndicator = document.getElementById("progress-indicator");
progressIndicator.classList.add("hide");
+ M.Collapsible.getInstance(document.getElementById("job-list")).open(1);
}
statusElement = document.getElementById("status");
statusElement.dataset.status = status;