Type info now only shows when needed

This commit is contained in:
2023-04-19 10:32:45 +02:00
parent 8c58c493be
commit 4d2a0968ec

View File

@@ -244,9 +244,12 @@ function performRequest(endpoint, checkXML, checkTransform) {
if (!empty) {
restRequest(port, endpoint, xmlData, transformData).then(function (result) {
document.getElementById("resultArea").value = result.result;
document.getElementById("procinfo").innerText = ' Computed using '.concat(" ", result.processor, ". Returned: ", result.type);
document.getElementById("procinfo").innerText = ' Computed using ' + result.processor
if (result.type)
document.getElementById("procinfo").innerText += ". Returned: " + result.type;
if (result.status = "OK") {
document.getElementById("procinfo").innerText = document.getElementById("procinfo").innerText.concat(" in ", result.time, "ms");
document.getElementById("procinfo").innerText += " in " + result.time + "ms";
procinfo.style.color = "#30aa58";
} else {
procinfo.style.color = "#aa3030";