🔀 Rebase from master

This commit is contained in:
Alicia Sykes
2022-08-06 18:53:48 +01:00
parent 18f6e4d268
commit c9cd395313
8 changed files with 75 additions and 43 deletions

View File

@@ -172,10 +172,12 @@ export default {
},
mounted() {
// If ststus checking is enabled, then check service status
if (this.enableStatusCheck) this.checkWebsiteStatus();
// If continious status checking is enabled, then start ever-lasting loop
if (this.statusCheckInterval > 0) {
this.intervalId = setInterval(this.checkWebsiteStatus, this.statusCheckInterval * 1000);
if (this.enableStatusCheck) {
this.checkWebsiteStatus();
// If continious status checking is enabled, then start ever-lasting loop
if (this.statusCheckInterval > 0) {
this.intervalId = setInterval(this.checkWebsiteStatus, this.statusCheckInterval * 1000);
}
}
},
beforeDestroy() {