mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Naming...
This commit is contained in:
parent
8cec7b2d3a
commit
f356d4bb89
@ -35,7 +35,7 @@
|
||||
</div>
|
||||
<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.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>
|
||||
</div>
|
||||
</div>
|
||||
@ -163,7 +163,7 @@
|
||||
}
|
||||
|
||||
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;
|
||||
|
||||
@ -185,11 +185,11 @@
|
||||
analyzeElement.classList.add("disabled", "hide");
|
||||
}
|
||||
|
||||
compileElement = document.getElementById("compile");
|
||||
buildElement = document.getElementById("build");
|
||||
if (status === "unprepared" && numFiles > 0) {
|
||||
compileElement.classList.remove("disabled", "hide");
|
||||
buildElement.classList.remove("disabled", "hide");
|
||||
} else {
|
||||
compileElement.classList.add("disabled", "hide");
|
||||
buildElement.classList.add("disabled", "hide");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user