mirror of https://github.com/bastienwirtz/homer
added updateInterval to Ping smartcard
parent
741e7f5a1f
commit
7490a1948f
|
@ -45,6 +45,11 @@ export default {
|
|||
}
|
||||
},
|
||||
created() {
|
||||
const updateInterval = parseInt(this.item.updateInterval, 10) || 0;
|
||||
if (updateInterval > 0) {
|
||||
setInterval(this.fetchStatus, updateInterval);
|
||||
}
|
||||
|
||||
this.fetchStatus();
|
||||
},
|
||||
methods: {
|
||||
|
|
Loading…
Reference in New Issue