mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
Add necessary condition to enable build button
This commit is contained in:
parent
a8643aa9f4
commit
fc9c1a4732
@ -55,7 +55,7 @@ class CorpusDisplay extends RessourceDisplay {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (let element of this.displayElement.querySelectorAll('.build-corpus-trigger')) {
|
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');
|
element.classList.remove('disabled');
|
||||||
} else {
|
} else {
|
||||||
element.classList.add('disabled');
|
element.classList.add('disabled');
|
||||||
|
Loading…
Reference in New Issue
Block a user