diff --git a/docs/HistogramView.js b/docs/HistogramView.js index 7e81f5bb97f..d1c0dd54b26 100644 --- a/docs/HistogramView.js +++ b/docs/HistogramView.js @@ -7,10 +7,12 @@ class HistogramView { } displayHistogramsForBatchcode(batchcode) { - // FK-TODO: zeige "Loading..." bis Daten geladen sind. + const loadingText = document.createTextNode('Loading...'); + this.#uiContainer.appendChild(loadingText); fetch(`data/histograms/${batchcode}.json`) .then(response => response.json()) .then(histoDescrs => { + loadingText.remove(); for (const histoDescr of histoDescrs.histograms) { const canvas = document.createElement("canvas"); this.#uiContainer.appendChild(canvas);