From b36b6a1fcffbcb59f3a3b537d61a6f2191bd73b6 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Mon, 12 Jan 2026 08:06:10 +0000 Subject: [PATCH] [autofix.ci] apply automated fixes --- src/components/MonitorList.vue | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/components/MonitorList.vue b/src/components/MonitorList.vue index 2bdde3e72..bfd70c943 100644 --- a/src/components/MonitorList.vue +++ b/src/components/MonitorList.vue @@ -43,10 +43,7 @@ {{ $tc("selectedMonitorCount", selectedMonitorCount) }} -
@@ -74,8 +71,13 @@
  • - - {{ $t("Delete") }} + + + {{ $t("Delete") }}
  • @@ -344,7 +346,7 @@ export default { */ pauseSelected() { const activeMonitors = Object.keys(this.selectedMonitors).filter((id) => this.$root.monitorList[id].active); - + if (activeMonitors.length === 0) { this.$root.toastError(this.$t("noMonitorsPausedMsg")); return; @@ -361,8 +363,10 @@ export default { * @returns {void} */ resumeSelected() { - const inactiveMonitors = Object.keys(this.selectedMonitors).filter((id) => !this.$root.monitorList[id].active); - + const inactiveMonitors = Object.keys(this.selectedMonitors).filter( + (id) => !this.$root.monitorList[id].active + ); + if (inactiveMonitors.length === 0) { this.$root.toastError(this.$t("noMonitorsResumedMsg")); return; @@ -380,7 +384,7 @@ export default { */ async deleteSelected() { const monitorIds = Object.keys(this.selectedMonitors); - + this.bulkActionInProgress = true; let successCount = 0; let errorCount = 0; @@ -411,7 +415,7 @@ export default { if (errorCount > 0) { this.$root.toastError(this.$t("bulkDeleteErrorMsg", [errorCount])); } - + this.cancelSelectMode(); }, /**