diff --git a/app/templates/corpora/corpus.html.j2 b/app/templates/corpora/corpus.html.j2 index 9f934ee3..a686aac2 100644 --- a/app/templates/corpora/corpus.html.j2 +++ b/app/templates/corpora/corpus.html.j2 @@ -61,6 +61,12 @@ statusElement.classList.remove(...Object.values(CorpusList.STATUS_COLORS)); statusElement.classList.add(CorpusList.STATUS_COLORS[status] || CorpusList.STATUS_COLORS['default']); statusElement.innerText = status; + if (status === 'prepared') { + var analyseBtn = document.getElementById('analyse'); + analyseBtn.classList.remove('hide'); + var prepareBtn = document.getElementById('prepare'); + prepareBtn.classList.add('hide') + } } } @@ -87,11 +93,9 @@