mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-27 08:44:04 +00:00
fix: update children in ui on pause
This commit is contained in:
parent
703e3d0fae
commit
b4fabbb00f
1 changed files with 10 additions and 0 deletions
|
@ -987,6 +987,11 @@ let needSetup = false;
|
|||
await startMonitor(socket.userID, monitorID);
|
||||
await server.sendUpdateMonitorIntoList(socket, monitorID);
|
||||
|
||||
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
|
||||
for (let childID of childrenIDs) {
|
||||
await server.sendUpdateMonitorIntoList(socket, childID);
|
||||
}
|
||||
|
||||
callback({
|
||||
ok: true,
|
||||
msg: "successResumed",
|
||||
|
@ -1007,6 +1012,11 @@ let needSetup = false;
|
|||
await pauseMonitor(socket.userID, monitorID);
|
||||
await server.sendUpdateMonitorIntoList(socket, monitorID);
|
||||
|
||||
const childrenIDs = await Monitor.getAllChildrenIDs(monitorID);
|
||||
for (let childID of childrenIDs) {
|
||||
await server.sendUpdateMonitorIntoList(socket, childID);
|
||||
}
|
||||
|
||||
callback({
|
||||
ok: true,
|
||||
msg: "successPaused",
|
||||
|
|
Loading…
Reference in a new issue