mirror of https://github.com/apache/cloudstack.git
cloudstack UI - infrastructure page - resource count - hide resource count whose API hasn't been fixed yet (i.e. zones count, hosts count, secondary storage count) and show resource count whose API has been fixed (i.e. pods count, clusters count, primary storage count, system VMs count, virtual routers count).
This commit is contained in:
parent
cfdcc7ed15
commit
e8a7a82389
|
|
@ -207,10 +207,19 @@
|
|||
$.ajax({
|
||||
url: createURL('listClusters'),
|
||||
success: function(json) {
|
||||
dataFns.hostCount($.extend(data, {
|
||||
/*
|
||||
dataFns.hostCount($.extend(data, {
|
||||
clusterCount: json.listclustersresponse.count ?
|
||||
json.listclustersresponse.count : 0
|
||||
}));
|
||||
*/
|
||||
|
||||
//uncomment the 4 lines above and remove the following 4 lines after "count" in listHosts API is fixed.
|
||||
dataFns.primaryStorageCount($.extend(data, {
|
||||
clusterCount: json.listclustersresponse.count ?
|
||||
json.listclustersresponse.count : 0
|
||||
}));
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
@ -234,10 +243,19 @@
|
|||
$.ajax({
|
||||
url: createURL('listStoragePools'),
|
||||
success: function(json) {
|
||||
dataFns.secondaryStorageCount($.extend(data, {
|
||||
/*
|
||||
dataFns.secondaryStorageCount($.extend(data, {
|
||||
primaryStorageCount: json.liststoragepoolsresponse.count ?
|
||||
json.liststoragepoolsresponse.count : 0
|
||||
}));
|
||||
*/
|
||||
|
||||
//uncomment the 4 lines above and remove the following 4 lines after "count" in listHosts API is fixed.
|
||||
dataFns.systemVmCount($.extend(data, {
|
||||
primaryStorageCount: json.liststoragepoolsresponse.count ?
|
||||
json.liststoragepoolsresponse.count : 0
|
||||
}));
|
||||
|
||||
}
|
||||
});
|
||||
},
|
||||
|
|
@ -337,7 +355,9 @@
|
|||
});
|
||||
};
|
||||
|
||||
dataFns.zoneCount({});
|
||||
//dataFns.zoneCount({});
|
||||
dataFns.podCount({}); //uncomment the line above and remove this line after "count" in listZones API is fixed.
|
||||
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue