Automatic refresh after change of settings

routes/api.js
   - check error on return from server

public/javascripts/global.js
   -  reload pages with new values after save at settings

public/javascripts/map.js
   - removed status.loaded=true after call to laodAll

public/javascripts/showcharts.js
   - also load live at loadAll
This commit is contained in:
rxf
2023-04-07 18:09:24 +02:00
parent 22a6b9ab2c
commit abc05f177b
4 changed files with 11 additions and 21 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ export async function showChart(params, typ, container) {
export const loadAll = async (params) => {
console.log('now load all in Background')
for (let i = 2; i < tabtable.length; i++) {
for (let i = 1; i < tabtable.length; i++) {
let ok = await showChart(params, tabtable[i].type, tabtable[i].container)
if (!ok) {
break;