Skip to content
Snippets Groups Projects
Commit fc9c1a47 authored by Patrick Jentsch's avatar Patrick Jentsch
Browse files

Add necessary condition to enable build button

parent a8643aa9
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment