Errormeldung schon beim ersten Aufruf

This commit is contained in:
2024-08-28 15:51:16 +00:00
parent 981722a37d
commit af6b067e67
4 changed files with 9 additions and 6 deletions
+7 -3
View File
@@ -256,11 +256,15 @@ import * as spin from './spinner.js'
let tt = new bootstrap.Tab(t)
tt.show()
setCurrentTab('livetab')
let ok = await showChart(params, ttIndex.live)
let err = await showChart(params, ttIndex.live)
spin.spinner.stop()
if (ok) {
await loadAll(params)
if (err.error) {
let errtxt = document.querySelector(`#${tabtable[ttIndex.live].id}err`).innerHTML
if (errtxt !== '') {
showError(errtxt)
}
}
await loadAll(params)
} else {
// show the map
map.showMap(params)