mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Temporary fix to keep dashboard UI from reporting error
This commit is contained in:
parent
be04ff861c
commit
fa2a308d56
@ -114,6 +114,9 @@
|
||||
if (data.zones) {
|
||||
$.ajax({
|
||||
url: createURL('listCapacity'),
|
||||
data: {
|
||||
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
|
||||
},
|
||||
success: function(json) {
|
||||
var capacities = json.listcapacityresponse.capacity;
|
||||
|
||||
|
||||
@ -29,7 +29,8 @@
|
||||
success: function(json) {
|
||||
dataFns.podCount($.extend(data, {
|
||||
zoneCount: json.listzonesresponse.count ?
|
||||
json.listzonesresponse.count : 0
|
||||
json.listzonesresponse.count : 0,
|
||||
zones: json.listzonesresponse.zone
|
||||
}));
|
||||
}
|
||||
});
|
||||
@ -78,6 +79,9 @@
|
||||
if (data.zoneCount) {
|
||||
$.ajax({
|
||||
url: createURL('listCapacity'),
|
||||
data: {
|
||||
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
|
||||
},
|
||||
success: function(json) {
|
||||
var capacities = json.listcapacityresponse.capacity;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user