From fc9c1a4732dc5f93432447213f4ef0b3c5613826 Mon Sep 17 00:00:00 2001 From: Patrick Jentsch Date: Wed, 13 Jan 2021 12:05:25 +0100 Subject: [PATCH] Add necessary condition to enable build button --- web/app/static/js/nopaque/displays/CorpusDisplay.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/static/js/nopaque/displays/CorpusDisplay.js b/web/app/static/js/nopaque/displays/CorpusDisplay.js index 2050ed49..df842f1d 100644 --- a/web/app/static/js/nopaque/displays/CorpusDisplay.js +++ b/web/app/static/js/nopaque/displays/CorpusDisplay.js @@ -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');