Merge pull request #60 from 0hAodha/tests

Add unit tests and fix map load
This commit is contained in:
2023-03-20 18:18:17 +00:00
committed by GitHub
8 changed files with 9414 additions and 14 deletions

View File

@ -216,7 +216,11 @@ export default {
},
getPreferences() {
if (!store.loggedIn) return
if (!store.loggedIn) {
this.loader.hide()
return
}
const functions = getFunctions(app);
let host = window.location.hostname
if (host === '127.0.0.1' || host == 'localhost') {
@ -241,10 +245,12 @@ export default {
this.decideShowStations()
this.decideShowTrains()
this.readyToDisplayMap = true
this.loader.hide()
}
})
.catch((error) => {
this.readyToDisplayMap = true
this.loader.hide()
})
},
@ -448,7 +454,7 @@ export default {
}
store.setInsights(insights);
this.loader.hide()
// this.loader.hide()
// request the user's preferences
this.getPreferences()
})