Scaffold: Fix duplicate text in test status label
This commit is contained in:
parent
387210e139
commit
19ab6b6643
1 changed files with 4 additions and 4 deletions
|
@ -1953,14 +1953,14 @@ var Scaffold = new function () {
|
||||||
if (!items || items.length == 0) return; // No action if nothing selected
|
if (!items || items.length == 0) return; // No action if nothing selected
|
||||||
var tests = [];
|
var tests = [];
|
||||||
for (let item of items) {
|
for (let item of items) {
|
||||||
item.getElementsByTagName("label")[1].setAttribute("value", "Running");
|
item.getElementsByTagName("label")[1].textContent = "Running";
|
||||||
var test = JSON.parse(item.dataset.testString);
|
var test = JSON.parse(item.dataset.testString);
|
||||||
test["ui-item"] = ContentDOMReference.get(item);
|
test["ui-item"] = ContentDOMReference.get(item);
|
||||||
tests.push(test);
|
tests.push(test);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.runTests(tests, (obj, test, status, message) => {
|
this.runTests(tests, (obj, test, status, message) => {
|
||||||
ContentDOMReference.resolve(test["ui-item"]).getElementsByTagName("label")[1].setAttribute("value", message);
|
ContentDOMReference.resolve(test["ui-item"]).getElementsByTagName("label")[1].textContent = message;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1984,7 +1984,7 @@ var Scaffold = new function () {
|
||||||
var itemIndices = items.map(item => listbox.getIndexOfItem(item));
|
var itemIndices = items.map(item => listbox.getIndexOfItem(item));
|
||||||
var tests = [];
|
var tests = [];
|
||||||
for (let item of items) {
|
for (let item of items) {
|
||||||
item.getElementsByTagName("label")[1].setAttribute("value", "Updating");
|
item.getElementsByTagName("label")[1].textContent = "Updating";
|
||||||
var test = JSON.parse(item.dataset.testString);
|
var test = JSON.parse(item.dataset.testString);
|
||||||
tests.push(test);
|
tests.push(test);
|
||||||
}
|
}
|
||||||
|
@ -2002,7 +2002,7 @@ var Scaffold = new function () {
|
||||||
else {
|
else {
|
||||||
message = "Update failed";
|
message = "Update failed";
|
||||||
}
|
}
|
||||||
items[testsDone].getElementsByTagName("label")[1].setAttribute("value", message);
|
items[testsDone].getElementsByTagName("label")[1].textContent = message;
|
||||||
testsDone++;
|
testsDone++;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue