Naming...

This commit is contained in:
Patrick Jentsch 2020-04-16 10:21:22 +02:00
parent 8cec7b2d3a
commit f356d4bb89

View File

@ -35,7 +35,7 @@
</div> </div>
<div class="card-action right-align"> <div class="card-action right-align">
<a href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="analyze"><i class="material-icons left">search</i>Analyze</a> <a href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="analyze"><i class="material-icons left">search</i>Analyze</a>
<a href="{{ url_for('corpora.prepare_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="compile"><i class="material-icons left">merge_type</i>Compile</a> <a href="{{ url_for('corpora.prepare_corpus', corpus_id=corpus.id) }}" class="btn disabled hide waves-effect waves-light" id="build"><i class="material-icons left">build</i>Build</a>
<a data-target="delete-corpus-modal" class="btn modal-trigger red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a> <a data-target="delete-corpus-modal" class="btn modal-trigger red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
</div> </div>
</div> </div>
@ -163,7 +163,7 @@
} }
setStatus(status) { setStatus(status) {
let analyzeElement, compileElement, numFiles, progressIndicatorElement, statusElement; let analyzeElement, buildElement, numFiles, progressIndicatorElement, statusElement;
numFiles = (this.foreignCorpusFlag ? nopaque.foreignCorpora[this.corpusId] : nopaque.corpora[this.corpusId]).files.length; numFiles = (this.foreignCorpusFlag ? nopaque.foreignCorpora[this.corpusId] : nopaque.corpora[this.corpusId]).files.length;
@ -185,11 +185,11 @@
analyzeElement.classList.add("disabled", "hide"); analyzeElement.classList.add("disabled", "hide");
} }
compileElement = document.getElementById("compile"); buildElement = document.getElementById("build");
if (status === "unprepared" && numFiles > 0) { if (status === "unprepared" && numFiles > 0) {
compileElement.classList.remove("disabled", "hide"); buildElement.classList.remove("disabled", "hide");
} else { } else {
compileElement.classList.add("disabled", "hide"); buildElement.classList.add("disabled", "hide");
} }
} }
} }