mirror of
https://github.com/DJ2LS/FreeDATA
synced 2024-05-14 08:04:33 +00:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
5a42033a89
1 changed files with 23 additions and 33 deletions
|
@ -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 = "";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue