This commit is contained in:
Stephan Porada 2020-04-06 12:41:23 +02:00
parent 12586bb13d
commit 41f24a03b4

View File

@ -21,13 +21,6 @@ function querySetup(payload) {
function queryRenderResults(payload) {
// This is called when results are transmitted and being recieved
console.log("Current recieved chunk:", payload.chunk);
// upate progress status
if (payload.progress === 100) {
queryResultsProgressElement.classList.add("hide");
queryResultsUserFeedbackElement.classList.add("hide");
queryResultsExportElement.classList.remove("disabled");
activateInspect();
}
if (payload.chunk.cpos_ranges == true) {
results.resultsJSON["cpos_ranges"] = true;
} else {
@ -56,4 +49,11 @@ function queryRenderResults(payload) {
receivedMatchCountElement.innerText = `${results.resultsJSON.matches.length}`;
textLookupCountElement.innerText = `${Object.keys(results.resultsJSON.text_lookup).length}`;
console.log("Results recieved:", results.resultsJSON);
// upate progress status
if (payload.progress === 100) {
queryResultsProgressElement.classList.add("hide");
queryResultsUserFeedbackElement.classList.add("hide");
queryResultsExportElement.classList.remove("disabled");
activateInspect();
}
}