mirror of
https://github.com/Lissy93/dashy.git
synced 2025-12-07 17:15:17 +01:00
🔀 Merge pull request #828 from miclav/bug/periodic-check
Only do periodic check when statuscheck is enabled
This commit is contained in:
commit
07a81eb075
1 changed files with 6 additions and 4 deletions
|
|
@ -172,10 +172,12 @@ export default {
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// If ststus checking is enabled, then check service status
|
// If ststus checking is enabled, then check service status
|
||||||
if (this.enableStatusCheck) this.checkWebsiteStatus();
|
if (this.enableStatusCheck) {
|
||||||
// If continious status checking is enabled, then start ever-lasting loop
|
this.checkWebsiteStatus();
|
||||||
if (this.statusCheckInterval > 0) {
|
// If continious status checking is enabled, then start ever-lasting loop
|
||||||
this.intervalId = setInterval(this.checkWebsiteStatus, this.statusCheckInterval * 1000);
|
if (this.statusCheckInterval > 0) {
|
||||||
|
this.intervalId = setInterval(this.checkWebsiteStatus, this.statusCheckInterval * 1000);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
beforeDestroy() {
|
beforeDestroy() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue