From 0f7df4fd3b2d67c9eb2740394389fe4f20a565a9 Mon Sep 17 00:00:00 2001
From: Patrick Jentsch
Date: Wed, 12 Feb 2020 16:34:31 +0100
Subject: [PATCH] new status view
---
app/templates/corpora/corpus.html.j2 | 21 +++++++++++++++++++--
1 file changed, 19 insertions(+), 2 deletions(-)
diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2
index b1156a6c..b6058be5 100644
--- a/app/templates/corpora/corpus.html.j2
+++ b/app/templates/corpora/corpus.html.j2
@@ -7,7 +7,20 @@
{{ corpus.title }}
{{ corpus.description }}
-
+
+
@@ -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');