From e360b651d76b810ac81fbd0f9d70c20771707295 Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sat, 18 Apr 2026 16:05:43 +0200 Subject: [PATCH] feat: Scheduler migration for netalertx --- src/components/services/NetAlertx.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/services/NetAlertx.vue b/src/components/services/NetAlertx.vue index 655b4d2..a9faba9 100644 --- a/src/components/services/NetAlertx.vue +++ b/src/components/services/NetAlertx.vue @@ -44,10 +44,10 @@ export default { }; }, created() { - const updateInterval = parseInt(this.item.updateInterval, 10) || 0; - if (updateInterval > 0) { - setInterval(() => this.fetchStatus(), updateInterval); - } + // Set up auto-update method for the scheduler + this.autoUpdateMethod = this.fetchStatus; + + // Initial data fetch this.fetchStatus(); }, methods: {