mirror of
https://github.com/bastienwirtz/homer.git
synced 2026-05-05 22:27:31 +02:00
added updateInterval to Ping smartcard
This commit is contained in:
committed by
Bastien Wirtz
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: {
|
||||
|
||||
Reference in New Issue
Block a user