Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development

This commit is contained in:
Patrick Jentsch 2020-03-12 14:13:11 +01:00
commit e5e77d7dc2
2 changed files with 4 additions and 4 deletions

View File

@ -182,7 +182,7 @@
--> -->
<div id="loading-modal" class="modal no-autoinit"> <div id="loading-modal" class="modal no-autoinit">
<div class="modal-content"> <div class="modal-content">
<h4>Waiting for analysis software</h4> <h4>Building your own analysis interface!</h4>
<div class="progress"> <div class="progress">
<div class="indeterminate"></div> <div class="indeterminate"></div>
</div> </div>

View File

@ -36,7 +36,7 @@
<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 hide waves-effect waves-light" id="analyse"><i class="material-icons left">help</i>Analyse</a> <a href="{{ url_for('corpora.analyse_corpus', corpus_id=corpus.id) }}" class="btn hide waves-effect waves-light" id="analyse"><i class="material-icons left">help</i>Analyse</a>
{% if corpus.files[0] is defined %} {% if corpus.files[0] is defined %}
<a href="{{ url_for('corpora.prepare_corpus', corpus_id=corpus.id) }}" class="btn waves-effect waves-light" id="prepare"><i class="material-icons left">whatshot</i>Build Corpus</a> <a href="{{ url_for('corpora.prepare_corpus', corpus_id=corpus.id) }}" class="btn waves-effect waves-light hide" id="prepare"><i class="material-icons left">whatshot</i>Build Corpus</a>
{% endif %} {% endif %}
<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>
@ -175,9 +175,9 @@
analyseBtn.classList.remove('hide'); analyseBtn.classList.remove('hide');
analyseBtn.classList.add('disabled'); analyseBtn.classList.add('disabled');
} }
if (status === 'prepared' || status === 'preparable' || status === 'preparing' || status === 'start analysis' || status === 'analysing' || status === 'stop analysis') { if (status === 'unprepared') {
var prepareBtn = document.getElementById('prepare'); var prepareBtn = document.getElementById('prepare');
prepareBtn.classList.add('hide'); prepareBtn.classList.remove('hide');
} }
} }
} }