Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
DJ2LS 2024-01-05 15:57:32 +01:00
commit 5a42033a89

View file

@ -61,42 +61,32 @@ export function eventDispatcher(data) {
return; return;
} }
switch (data["modem"]) { switch (data["modem"]) {
case "started": case "started":
displayToast("success", "bi-arrow-left-right", "Modem started", 5000); displayToast("success", "bi-arrow-left-right", "Modem started", 5000);
return; return;
case "stopped":
displayToast("success", "bi-arrow-left-right", "Modem stopped", 5000);
return;
case "restarted":
displayToast(
"secondary",
"bi-bootstrap-reboot",
"Modem restarted",
5000,
);
return;
case "failed":
displayToast(
"danger",
"bi-bootstrap-reboot",
"Modem startup failed | bad config?",
5000,
);
return;
default:
console.warn("Unknown event message received:");
console.warn(data);
break;
}
case "stopped":
displayToast("success", "bi-arrow-left-right", "Modem stopped", 5000);
return;
case "restarted":
displayToast("secondary", "bi-bootstrap-reboot", "Modem restarted", 5000);
return;
case "failed":
displayToast(
"danger",
"bi-bootstrap-reboot",
"Modem startup failed | bad config?",
5000,
);
return;
default:
console.warn("Unknown event message received:");
console.warn(data);
break;
}
var message = ""; var message = "";