10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-07-23 11:17:42 +02:00

Fix processingIndicator missing

This commit is contained in:
Mickaël Véril 2020-09-29 11:47:22 +02:00
parent 4131a34a1c
commit 2a1c9520ee

View File

@ -143,6 +143,7 @@ draft: false
reloadCustomFiles() reloadCustomFiles()
} }
async function reloadGeoms(){ async function reloadGeoms(){
processingIndicator.isActive = true
window.geoms = await GeometriesLoader.loadForAsync(uniq(window.defaultDats.map(d=>{ window.geoms = await GeometriesLoader.loadForAsync(uniq(window.defaultDats.map(d=>{
return { return {
set:d.set.name, set:d.set.name,
@ -160,9 +161,11 @@ draft: false
const shownHunknow=window.dats.some((d)=>!mols.includes(d.molecule)) const shownHunknow=window.dats.some((d)=>!mols.includes(d.molecule))
if (shownHunknow) { if (shownHunknow) {
$("#cb_nHUnknow").parent().show() $("#cb_nHUnknow").parent().show()
} }
processingIndicator.isActive = false
} }
async function reloadCustomFiles() { async function reloadCustomFiles() {
processingIndicator.isActive = true
window.dats = window.defaultDats; window.dats = window.defaultDats;
const kinds = new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]]) const kinds = new Map([["file_abs", VertExcitationKinds.Absorbtion], ["file_fluo", VertExcitationKinds.Fluorescence]])
for (const el of $('#form_dat > fieldset > fieldset > div > input[type="file"')) { for (const el of $('#form_dat > fieldset > fieldset > div > input[type="file"')) {
@ -173,6 +176,7 @@ draft: false
} }
} }
} }
processingIndicator.isActive = false
reloadSelect("sets") reloadSelect("sets")
} }
async function clearSelect(BeforeName = null) { async function clearSelect(BeforeName = null) {