Skip to content
Snippets Groups Projects
Commit d4e295ac authored by Piotr Gawron's avatar Piotr Gawron
Browse files

Merge branch '652-improve-project-progress-text' into 'master'

Resolve "Improve display of progress when downloading a genome"

Closes #652

See merge request !599
parents 2d001257 dd3a62a1
No related branches found
No related tags found
2 merge requests!630WIP: Resolve "The privileges of a new user are not saved in some cases",!599Resolve "Improve display of progress when downloading a genome"
Pipeline #8519 passed
......@@ -99,17 +99,18 @@ ReferenceGenome.prototype.setDownloadProgress = function (downloadProgress) {
* @returns {string}
*/
ReferenceGenome.prototype.getDownloadProgressStatus = function () {
if (this.getDownloadProgress() === 100) {
var progress = this.getDownloadProgress();
if (progress === 100) {
if (this.getLocalUrl() !== undefined) {
return "READY";
} else {
return "ERROR";
}
} else {
if (this.getDownloadProgress() === undefined) {
if (progress === undefined) {
return "N/A";
} else {
return this.getDownloadProgress().toString();
return progress.toFixed(2) + ' %';
}
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment