Skip to content
Snippets Groups Projects
Commit 85f41989 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Fixed issue on busy nodes visualization

parent 7345a967
Branches
Tags
No related merge requests found
Pipeline #1670 passed
...@@ -146,11 +146,8 @@ public class NodesHtmlGenerator { ...@@ -146,11 +146,8 @@ public class NodesHtmlGenerator {
private void addNodeIcon(NodeInfo nodeInfo, Element cell) { private void addNodeIcon(NodeInfo nodeInfo, Element cell) {
Element iconContainer = cell;
if (nodeInfo.isBusy()) { if (nodeInfo.isBusy()) {
Element loadingWrapper = cell.appendElement("span"); Element loadingWrapper = cell.appendElement("span");
iconContainer = loadingWrapper;
loadingWrapper.addClass("node-busy"); loadingWrapper.addClass("node-busy");
Element spinner = loadingWrapper.appendElement("span"); Element spinner = loadingWrapper.appendElement("span");
spinner.attr("role", "status"); spinner.attr("role", "status");
...@@ -177,7 +174,7 @@ public class NodesHtmlGenerator { ...@@ -177,7 +174,7 @@ public class NodesHtmlGenerator {
} }
} }
iconContainer.append(" "); cell.append(" ");
} }
private void addLink(NodeInfo nodeInfo, Element cell) { private void addLink(NodeInfo nodeInfo, Element cell) {
...@@ -193,7 +190,7 @@ public class NodesHtmlGenerator { ...@@ -193,7 +190,7 @@ public class NodesHtmlGenerator {
link.attr("href", href); link.attr("href", href);
link.text(nodeInfo.getName()); link.text(nodeInfo.getName());
} else { } else {
cell.text(nodeInfo.getName()); cell.appendText(nodeInfo.getName());
} }
} }
......
...@@ -83,7 +83,6 @@ export default { ...@@ -83,7 +83,6 @@ export default {
.node-busy { .node-busy {
position: relative; position: relative;
padding-right: 3px;
} }
.node-busy .spinner-border { .node-busy .spinner-border {
...@@ -95,4 +94,8 @@ export default { ...@@ -95,4 +94,8 @@ export default {
top: -7px; top: -7px;
color: #3293f2; color: #3293f2;
} }
.node-busy + .icon {
margin-right: 3px;
}
</style> </style>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment