added updateInterval to Ping smartcard

pull/865/head
Max Netyaga 2025-01-16 20:22:44 +02:00 committed by Bastien Wirtz
parent 741e7f5a1f
commit 7490a1948f
1 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,11 @@ export default {
} }
}, },
created() { created() {
const updateInterval = parseInt(this.item.updateInterval, 10) || 0;
if (updateInterval > 0) {
setInterval(this.fetchStatus, updateInterval);
}
this.fetchStatus(); this.fetchStatus();
}, },
methods: { methods: {