From 67dab88674fd559f26f84c04cad5b99db170b768 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 12 Feb 2020 16:24:56 +0100
Subject: [PATCH] Add running indicator
---
app/templates/jobs/job.html.j2 | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/app/templates/jobs/job.html.j2 b/app/templates/jobs/job.html.j2
index 674a566f..62de7cb0 100644
--- a/app/templates/jobs/job.html.j2
+++ b/app/templates/jobs/job.html.j2
@@ -8,7 +8,20 @@
{{ job.title }}
{{ job.description }}
-
+
+
@@ -224,8 +237,11 @@
}
setStatus(status) {
- let statusElement;
-
+ let progressIndicator, statusElement;
+ if (status === "complete") {
+ progressIndicator = document.getElementById("progress-indicator");
+ progressIndicator.classList.add("hide");
+ }
statusElement = document.getElementById("status");
statusElement.dataset.status = status;
}