You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e8b6c7b
Browse filesBrowse the repository at this point in the historyBrowse files
Jessica Wang
committed
CLOUDSTACK-2120: mixed zone management - UI: count total number of hosts based on selected option in zone type dropdown on top menu.
Copy file name to clipboardExpand all lines: ui/scripts/system.js
+11-5Lines changed: 11 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -246,13 +246,19 @@
246
246
},
247
247
248
248
hostCount: function(data){
249
+
vardata2={
250
+
type: 'routing',
251
+
page: 1,
252
+
pagesize: 1//specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property.
253
+
};
254
+
if(cloudStack.context.zoneType!=null&&cloudStack.context.zoneType.length>0){//Basic type or Advanced type
255
+
$.extend(data2,{
256
+
zonetype: cloudStack.context.zoneType
257
+
});
258
+
}
249
259
$.ajax({
250
260
url: createURL('listHosts'),
251
-
data: {
252
-
type: 'routing',
253
-
page: 1,
254
-
pagesize: 1//specifying pagesize as 1 because we don't need any embedded objects to be returned here. The only thing we need from API response is "count" property.
0 commit comments