Skip to content

Commit fa2a308

Browse files
committed
Temporary fix to keep dashboard UI from reporting error
1 parent be04ff8 commit fa2a308

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

ui/scripts/dashboard.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@
114114
if (data.zones) {
115115
$.ajax({
116116
url: createURL('listCapacity'),
117+
data: {
118+
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
119+
},
117120
success: function(json) {
118121
var capacities = json.listcapacityresponse.capacity;
119122

ui/scripts/system.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
success: function(json) {
3030
dataFns.podCount($.extend(data, {
3131
zoneCount: json.listzonesresponse.count ?
32-
json.listzonesresponse.count : 0
32+
json.listzonesresponse.count : 0,
33+
zones: json.listzonesresponse.zone
3334
}));
3435
}
3536
});
@@ -78,6 +79,9 @@
7879
if (data.zoneCount) {
7980
$.ajax({
8081
url: createURL('listCapacity'),
82+
data: {
83+
zoneid: data.zones[0].id // Temporary hack to keep dashboard working
84+
},
8185
success: function(json) {
8286
var capacities = json.listcapacityresponse.capacity;
8387

0 commit comments

Comments
 (0)