mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Fix message chat progress bars
This commit is contained in:
parent
17926354e8
commit
8268dfd419
|
@ -683,8 +683,10 @@ ipcRenderer.on("action-update-transmission-status", (event, arg) => {
|
||||||
|
|
||||||
document.getElementById("txtConnectedWithChat").textContent = data.dxcallsign;
|
document.getElementById("txtConnectedWithChat").textContent = data.dxcallsign;
|
||||||
|
|
||||||
console.log(data.status);
|
if (typeof data.uuid === undefined) return;
|
||||||
if (typeof data.uuid !== "undefined" || data.uuid !== "no-uuid") {
|
|
||||||
|
//console.log(data.status);
|
||||||
|
if (data.uuid !== "no-uuid") {
|
||||||
db.get(data.uuid, {
|
db.get(data.uuid, {
|
||||||
attachments: true,
|
attachments: true,
|
||||||
})
|
})
|
||||||
|
@ -1445,7 +1447,7 @@ update_chat = function (obj) {
|
||||||
var percent_value = "TRANSMITTED";
|
var percent_value = "TRANSMITTED";
|
||||||
} else {
|
} else {
|
||||||
var progressbar_bg = "bg-primary";
|
var progressbar_bg = "bg-primary";
|
||||||
var percent_value = obj.percent;
|
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
|
||||||
|
@ -1487,9 +1489,9 @@ update_chat = function (obj) {
|
||||||
}%;" aria-valuenow="${
|
}%;" aria-valuenow="${
|
||||||
obj.percent
|
obj.percent
|
||||||
}" aria-valuemin="0" aria-valuemax="100"></div>
|
}" aria-valuemin="0" aria-valuemax="100"></div>
|
||||||
<p class="justify-content-center d-flex position-absolute m-0 p-0 w-100 text-white ${progressbar_bg}" 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">${percent_value} % - ${obj.bytesperminute} Bpm</p>
|
}-progress-information">${percent_value} - ${obj.bytesperminute} Bpm</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue