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

This commit is contained in:
stephan 2020-02-13 14:35:59 +01:00
commit dec07b0d63
2 changed files with 39 additions and 6 deletions

View File

@ -7,7 +7,20 @@
<div class="col s12 m4">
<h3 id="title">{{ corpus.title }}</h3>
<p id="description">{{ corpus.description }}</p>
<a class="btn status waves-effect waves-light" id="status"></a>
<div class="active preloader-wrapper small" id="progress-indicator">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
<span class="chip status white-text" id="status"></span>
</div>
<div class="col s12 m8">
@ -150,8 +163,12 @@
}
setStatus(status) {
let analyseBtn, statusElement;
let analyseBtn, progressIndicator, statusElement;
if (status != "preparable" && status != "preparing") {
progressIndicator = document.getElementById("progress-indicator");
progressIndicator.classList.add("hide");
}
statusElement = document.getElementById("status");
statusElement.dataset.status = status;
analyseBtn = document.getElementById('analyse');

View File

@ -8,7 +8,20 @@
<div class="col s12 m4">
<h3 id="title">{{ job.title }}</h3>
<p id="description">{{ job.description }}</p>
<a class="btn status waves-effect waves-light" id="status"></a>
<div class="active preloader-wrapper small" id="progress-indicator">
<div class="spinner-layer spinner-blue-only">
<div class="circle-clipper left">
<div class="circle"></div>
</div>
<div class="gap-patch">
<div class="circle"></div>
</div>
<div class="circle-clipper right">
<div class="circle"></div>
</div>
</div>
</div>
<span class="chip status white-text" id="status"></span>
</div>
@ -220,12 +233,15 @@
</tr>`
);
}
M.Collapsible.getInstance(document.getElementById("job-list")).open(1);
}
setStatus(status) {
let statusElement;
let progressIndicator, statusElement;
if (status === "complete") {
progressIndicator = document.getElementById("progress-indicator");
progressIndicator.classList.add("hide");
M.Collapsible.getInstance(document.getElementById("job-list")).open(1);
}
statusElement = document.getElementById("status");
statusElement.dataset.status = status;
}