mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
updated transmission status
This commit is contained in:
parent
4e8cf01b04
commit
47a15930fa
|
@ -1184,8 +1184,13 @@ update_chat = function (obj) {
|
||||||
|
|
||||||
if (obj.status == "failed") {
|
if (obj.status == "failed") {
|
||||||
var progressbar_bg = "bg-danger";
|
var progressbar_bg = "bg-danger";
|
||||||
|
var percent_value = "TRANSMISSION FAILED"
|
||||||
|
} else if(obj.status == "transmitted"){
|
||||||
|
var progressbar_bg = "bg-success";
|
||||||
|
var percent_value = "TRANSMITTED"
|
||||||
} else {
|
} else {
|
||||||
var progressbar_bg = "bg-primary";
|
var progressbar_bg = "bg-primary";
|
||||||
|
var percent_value = obj.percent;
|
||||||
}
|
}
|
||||||
|
|
||||||
//Sneak in low graphics mode if so enabled for progress bars
|
//Sneak in low graphics mode if so enabled for progress bars
|
||||||
|
@ -1236,7 +1241,7 @@ update_chat = function (obj) {
|
||||||
<p class="justify-content-center d-flex position-absolute m-0 p-0 w-100 text-white" style="font-size: xx-small" id="msg-${
|
<p class="justify-content-center d-flex position-absolute m-0 p-0 w-100 text-white" style="font-size: xx-small" id="msg-${
|
||||||
obj._id
|
obj._id
|
||||||
}-progress-information">
|
}-progress-information">
|
||||||
${obj.percent} % - ${obj.bytesperminute} Bpm
|
${percent_value} % - ${obj.bytesperminute} Bpm
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue