From 7d37f802b1a41e8d7ef9d1abed381079a8213552 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 11 Mar 2020 15:51:55 +0100 Subject: [PATCH] Hide prepare button --- app/templates/corpora/corpus.html.j2 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 04a74053..da98f706 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -36,7 +36,7 @@
helpAnalyse {% if corpus.files[0] is defined %} - whatshotBuild Corpus + whatshotBuild Corpus {% endif %} deleteDelete
@@ -175,9 +175,9 @@ analyseBtn.classList.remove('hide'); analyseBtn.classList.add('disabled'); } - if (status === 'prepared' || status === 'preparable' || status === 'preparing' || status === 'start analysis' || status === 'analysing' || status === 'stop analysis') { + if (status === 'unprepared') { var prepareBtn = document.getElementById('prepare'); - prepareBtn.classList.add('hide'); + prepareBtn.classList.remove('hide'); } } }