1
0
Fork 0
mirror of https://github.com/bastienwirtz/homer.git synced 2026-07-25 08:54:09 +00:00

feat: Scheduler migration for netalertx

This commit is contained in:
Bastien Wirtz 2026-04-18 16:05:43 +02:00
parent 6346a9468c
commit f4bdaaccc0

View file

@ -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: {