adjusting modals

This commit is contained in:
DJ2LS 2023-10-02 15:18:29 +02:00
parent 8470f412df
commit e3a4989223

View file

@ -290,14 +290,11 @@ client.on("data", function (socketdata) {
case "transmitting": case "transmitting":
// CQ TRANSMITTING // CQ TRANSMITTING
displayToast("success", "bi-arrow-left-right", "transmitting CQ", 5000); displayToast("success", "bi-arrow-left-right", "transmitting CQ", 5000);
break; break;
case "received": case "received":
// CQ RECEIVED // CQ RECEIVED
displayToast("success", "bi-arrow-left-right", "received CQ from ", 5000); displayToast("success", "bi-arrow-left-right", "received CQ from ", 5000);
break; break;
} }
@ -305,14 +302,12 @@ client.on("data", function (socketdata) {
case "transmitting": case "transmitting":
// QRV TRANSMITTING // QRV TRANSMITTING
displayToast("success", "bi-arrow-left-right", "transmitting QRV ", 5000); displayToast("success", "bi-arrow-left-right", "transmitting QRV ", 5000);
break; break;
case "received": case "received":
// QRV RECEIVED // QRV RECEIVED
message = "received QRV from " + data['dxcallsign'] + " | " + data['dxgrid'] message = "received QRV from " + data['dxcallsign'] + " | " + data['dxgrid']
displayToast("success", "bi-arrow-left-right", message, 5000); displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
} }
@ -320,14 +315,12 @@ client.on("data", function (socketdata) {
case "transmitting": case "transmitting":
// BEACON TRANSMITTING // BEACON TRANSMITTING
displayToast("success", "bi-arrow-left-right", "transmitting BEACON ", 5000); displayToast("success", "bi-arrow-left-right", "transmitting BEACON ", 5000);
break; break;
case "received": case "received":
// BEACON RECEIVED // BEACON RECEIVED
newBeaconReceived(data) newBeaconReceived(data)
message = "received BEACON from " + data['dxcallsign'] + " | " + data['dxgrid'] message = "received BEACON from " + data['dxcallsign'] + " | " + data['dxgrid']
displayToast("success", "bi-arrow-left-right", message, 5000); displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
@ -382,13 +375,20 @@ client.on("data", function (socketdata) {
switch (data["status"]) { switch (data["status"]) {
case "opened": case "opened":
// ARQ Open // ARQ Open
message = "ARQ session opened:" + data['dxcallsign']
displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
case "opening": case "opening":
// ARQ Opening IRS/ISS // ARQ Opening IRS/ISS
if (data["irs"] == "False") { if (data["irs"] == "False") {
message = "ARQ session opening:" + data['dxcallsign']
displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
} else { } else {
message = data['dxcallsign'] + "is requesting an ARQ session"
displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
} }
@ -397,6 +397,8 @@ client.on("data", function (socketdata) {
case "waiting": case "waiting":
// ARQ waiting // ARQ waiting
message = "busy channel | ARQ protocol is waiting"
displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
case "receiving": case "receiving":
@ -406,9 +408,13 @@ client.on("data", function (socketdata) {
case "failed": case "failed":
// ARQ TX Failed // ARQ TX Failed
if (data["reason"] == "protocol version missmatch") { if (data["reason"] == "protocol version missmatch") {
message = "protocol version missmatch"
displayToast("success", "bi-arrow-left-right", message, 5000);
break; break;
} else { } else {
message = "transmission failed"
displayToast("success", "bi-arrow-left-right", message, 5000);
updateTransmissionStatus(data) updateTransmissionStatus(data)
break; break;
} }
@ -446,6 +452,8 @@ client.on("data", function (socketdata) {
case "transmitted": case "transmitted":
// ARQ transmitted // ARQ transmitted
message = "data transmitted"
displayToast("success", "bi-arrow-left-right", message, 5000);
updateTransmissionStatus(data) updateTransmissionStatus(data)
break; break;
} }