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) { function queryRenderResults(payload) {
// This is called when results are transmitted and being recieved // This is called when results are transmitted and being recieved
console.log("Current recieved chunk:", payload.chunk); 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) { if (payload.chunk.cpos_ranges == true) {
results.resultsJSON["cpos_ranges"] = true; results.resultsJSON["cpos_ranges"] = true;
} else { } else {
@ -56,4 +49,11 @@ function queryRenderResults(payload) {
receivedMatchCountElement.innerText = `${results.resultsJSON.matches.length}`; receivedMatchCountElement.innerText = `${results.resultsJSON.matches.length}`;
textLookupCountElement.innerText = `${Object.keys(results.resultsJSON.text_lookup).length}`; textLookupCountElement.innerText = `${Object.keys(results.resultsJSON.text_lookup).length}`;
console.log("Results recieved:", results.resultsJSON); 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();
}
} }