From 97199d9b91ba8026369348847804bb4dfcfe9212 Mon Sep 17 00:00:00 2001 From: CalDescent Date: Tue, 1 Feb 2022 22:03:52 +0000 Subject: [PATCH] Display the local and total chunk counts on the loading screen. --- src/main/resources/loading/index.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/loading/index.html b/src/main/resources/loading/index.html index 807fa17f..fc50c72d 100644 --- a/src/main/resources/loading/index.html +++ b/src/main/resources/loading/index.html @@ -46,6 +46,7 @@ var url = host + '/arbitrary/resource/status/' + service + '/' + name + '?build=true'; var textStatus = "Loading..."; + var textProgress = ""; var retryInterval = 2500; const response = await fetch(url, { @@ -96,7 +97,12 @@ textStatus = status.description; } + if (status.localChunkCount != null && status.totalChunkCount != null) { + textProgress = "Files downloaded: " + status.localChunkCount + " / " + status.totalChunkCount; + } + document.getElementById("status").innerHTML = textStatus; + document.getElementById("progress").innerHTML = textProgress; setTimeout(checkStatus, retryInterval); } @@ -260,6 +266,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI This page will refresh automatically when the content becomes available.

Loading...

+