fix(ui): Set default refresh interval to 300 (5m)

This commit is contained in:
TwiN 2022-06-12 17:18:47 -04:00
parent 2cbb35fe3b
commit f9efa28223

View File

@ -59,7 +59,7 @@ export default {
}, },
created() { created() {
if (this.refreshInterval !== 10 && this.refreshInterval !== 30 && this.refreshInterval !== 60 && this.refreshInterval !== 120 && this.refreshInterval !== 300 && this.refreshInterval !== 600) { if (this.refreshInterval !== 10 && this.refreshInterval !== 30 && this.refreshInterval !== 60 && this.refreshInterval !== 120 && this.refreshInterval !== 300 && this.refreshInterval !== 600) {
this.refreshInterval = 60; this.refreshInterval = 300;
} }
this.setRefreshInterval(this.refreshInterval); this.setRefreshInterval(this.refreshInterval);
// dark mode // dark mode
@ -70,7 +70,7 @@ export default {
}, },
data() { data() {
return { return {
refreshInterval: sessionStorage.getItem('gatus:refresh-interval') < 10 ? 60 : parseInt(sessionStorage.getItem('gatus:refresh-interval')), refreshInterval: sessionStorage.getItem('gatus:refresh-interval') < 10 ? 300 : parseInt(sessionStorage.getItem('gatus:refresh-interval')),
refreshIntervalHandler: 0, refreshIntervalHandler: 0,
darkMode: true darkMode: true
} }