mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
Show expandable close arrow icon for cluster node that has host. Otherwise, show non-expandable icon for cluster node.
This commit is contained in:
parent
d005f9133e
commit
a1855ebb27
@ -301,6 +301,18 @@ function clusterJSONToTreeNode(json, $clusterNode) {
|
||||
$clusterNode.data("id", json.id).data("name", fromdb(json.name));
|
||||
var clusterName = $clusterNode.find("#cluster_name").text(fromdb(json.name));
|
||||
clusterName.data("jsonObj", json);
|
||||
|
||||
$.ajax({
|
||||
data: createURL("command=listHosts&type=Routing&clusterid="+json.id),
|
||||
dataType: "json",
|
||||
async: false,
|
||||
success: function(json) {
|
||||
var items = json.listhostsresponse.host;
|
||||
if (items != null && items.length > 0) {
|
||||
$clusterNode.find("#cluster_arrow").removeClass("white_nonexpanded_close").addClass("expanded_close");
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function afterLoadResourceJSP() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user