From 156614b3034b72f56cc6b0a8ee71562959f3b252 Mon Sep 17 00:00:00 2001 From: Nelson Chan <3271800+chakflying@users.noreply.github.com> Date: Fri, 6 Oct 2023 03:52:16 +0800 Subject: [PATCH] Fix: Missing callbacks for batch pause/resume (#3813) --- src/components/MonitorList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index d66bbe6c1..f8e699470 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -346,7 +346,7 @@ export default { pauseSelected() { Object.keys(this.selectedMonitors) .filter(id => this.$root.monitorList[id].active) - .forEach(id => this.$root.getSocket().emit("pauseMonitor", id)); + .forEach(id => this.$root.getSocket().emit("pauseMonitor", id, () => {})); this.cancelSelectMode(); }, @@ -357,7 +357,7 @@ export default { resumeSelected() { Object.keys(this.selectedMonitors) .filter(id => !this.$root.monitorList[id].active) - .forEach(id => this.$root.getSocket().emit("resumeMonitor", id)); + .forEach(id => this.$root.getSocket().emit("resumeMonitor", id, () => {})); this.cancelSelectMode(); },