mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
adjusting modals
This commit is contained in:
parent
8470f412df
commit
e3a4989223
1 changed files with 15 additions and 7 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue