Add corpus analysis stuff

This commit is contained in:
Stephan Porada
2019-11-06 15:40:43 +01:00
parent 7757c12dc4
commit 08aafb8f99
5 changed files with 38 additions and 3 deletions

View File

@ -61,11 +61,13 @@
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') {
if (status === 'prepared' || status === 'start analysis' || status === 'analysing') {
var analyseBtn = document.getElementById('analyse');
analyseBtn.classList.remove('hide');
}
if (status === 'prepared' || status === 'start analysis' || status === 'analysing') {
var prepareBtn = document.getElementById('prepare');
prepareBtn.classList.add('hide')
prepareBtn.classList.add('hide');
}
}
}