Commit 85f41989 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Fixed issue on busy nodes visualization

parent 7345a967
Loading
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -146,11 +146,8 @@ public class NodesHtmlGenerator {

    private void addNodeIcon(NodeInfo nodeInfo, Element cell) {

        Element iconContainer = cell;

        if (nodeInfo.isBusy()) {
            Element loadingWrapper = cell.appendElement("span");
            iconContainer = loadingWrapper;
            loadingWrapper.addClass("node-busy");
            Element spinner = loadingWrapper.appendElement("span");
            spinner.attr("role", "status");
@@ -177,7 +174,7 @@ public class NodesHtmlGenerator {
            }
        }

        iconContainer.append(" ");
        cell.append(" ");
    }

    private void addLink(NodeInfo nodeInfo, Element cell) {
@@ -193,7 +190,7 @@ public class NodesHtmlGenerator {
            link.attr("href", href);
            link.text(nodeInfo.getName());
        } else {
            cell.text(nodeInfo.getName());
            cell.appendText(nodeInfo.getName());
        }
    }

+4 −1
Original line number Diff line number Diff line
@@ -83,7 +83,6 @@ export default {

.node-busy {
  position: relative;
  padding-right: 3px;
}

.node-busy .spinner-border {
@@ -95,4 +94,8 @@ export default {
  top: -7px;
  color: #3293f2;
}

.node-busy + .icon {
  margin-right: 3px;
}
</style>