diff --git a/app/src/components/Topbar.svelte b/app/src/components/Topbar.svelte index 6549402..232f46a 100644 --- a/app/src/components/Topbar.svelte +++ b/app/src/components/Topbar.svelte @@ -1,5 +1,5 @@ @@ -50,7 +56,7 @@
- +
diff --git a/mock/server.js b/mock/server.js index 26c30a8..d96d210 100644 --- a/mock/server.js +++ b/mock/server.js @@ -277,8 +277,9 @@ wss.on("connection", (ws) => { } break; case "system/stop": - model.running = false; - ws.send(JSON.stringify(settings)); + ws.clientState.model.running = false; + ws.clientState.logs.push("[2024-02-05 19:10:00] [Warning] STOPPING SERVOS") + ws.send(JSON.stringify({type:"log", log:ws.clientState.logs.last()})); break; default: ws.send(JSON.stringify({ error: "Unknown request type" }));