mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02: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) {
|
if (data.zones) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL('listCapacity'),
|
url: createURL('listCapacity'),
|
||||||
|
data: {
|
||||||
|
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
|
||||||
|
},
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
var capacities = json.listcapacityresponse.capacity;
|
var capacities = json.listcapacityresponse.capacity;
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,8 @@
|
|||||||
success: function(json) {
|
success: function(json) {
|
||||||
dataFns.podCount($.extend(data, {
|
dataFns.podCount($.extend(data, {
|
||||||
zoneCount: json.listzonesresponse.count ?
|
zoneCount: json.listzonesresponse.count ?
|
||||||
json.listzonesresponse.count : 0
|
json.listzonesresponse.count : 0,
|
||||||
|
zones: json.listzonesresponse.zone
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -78,6 +79,9 @@
|
|||||||
if (data.zoneCount) {
|
if (data.zoneCount) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL('listCapacity'),
|
url: createURL('listCapacity'),
|
||||||
|
data: {
|
||||||
|
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
|
||||||
|
},
|
||||||
success: function(json) {
|
success: function(json) {
|
||||||
var capacities = json.listcapacityresponse.capacity;
|
var capacities = json.listcapacityresponse.capacity;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user