From e240bf7860d186317871c16e8fcf45cac1100c27 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Thu, 5 Dec 2019 15:58:28 +0100 Subject: [PATCH] Show prepare button if status switches to failed. --- app/templates/corpora/corpus.html.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 55002f5e..4c246159 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -147,7 +147,7 @@ statusElement.classList.add(CorpusList.STATUS_COLORS[status] || CorpusList.STATUS_COLORS['default']); statusElement.innerText = status; var analyseBtn = document.getElementById('analyse'); - if (status === 'prepared' || status === 'analysing') { + if (status === 'prepared' || status === 'analysing' || status === 'failed') { analyseBtn.classList.remove('hide', 'disabled'); } else if (status === 'start analysis' || status === 'stop analysis') { analyseBtn.classList.remove('hide');