From 7d37f802b1a41e8d7ef9d1abed381079a8213552 Mon Sep 17 00:00:00 2001 From: stephan Date: Wed, 11 Mar 2020 15:51:55 +0100 Subject: [PATCH 1/2] 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'); } } } From db7ccb2b1158f8005e13ae6dc150ad716c251000 Mon Sep 17 00:00:00 2001 From: stephan Date: Thu, 12 Mar 2020 10:34:40 +0100 Subject: [PATCH 2/2] important fix! --- app/templates/corpora/analyse_corpus.html.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/corpora/analyse_corpus.html.j2 b/app/templates/corpora/analyse_corpus.html.j2 index 333b4636..8f3a6355 100644 --- a/app/templates/corpora/analyse_corpus.html.j2 +++ b/app/templates/corpora/analyse_corpus.html.j2 @@ -182,7 +182,7 @@ -->