mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-07-17 16:38:59 +00:00
feat: Scheduler migration for netalertx
This commit is contained in:
parent
a1338bd5a5
commit
e360b651d7
1 changed files with 4 additions and 4 deletions
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue