mirror of https://github.com/bastienwirtz/homer
added updateInterval to Ping smartcard
parent
741e7f5a1f
commit
7490a1948f
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue