Add necessary condition to enable build button

This commit is contained in:
Patrick Jentsch 2021-01-13 12:05:25 +01:00
parent a8643aa9f4
commit fc9c1a4732

View File

@ -55,7 +55,7 @@ class CorpusDisplay extends RessourceDisplay {
}
}
for (let element of this.displayElement.querySelectorAll('.build-corpus-trigger')) {
if (status === 'unprepared') {
if (status === 'unprepared' && Object.values(this.corpus.files).length > 0) {
element.classList.remove('disabled');
} else {
element.classList.add('disabled');