mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-15 12:04:35 +00:00
Add necessary condition to enable build button
This commit is contained in:
1 parent
a8643aa9f4
commit
fc9c1a4732
1 file changed
+1
-1
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user