Skip to content

Commit 58cb5ba

Browse files
author
Jessica Wang
committed
CLOUDSTACK-7601: UI > Global Settings > Baremetal Rack Configuration > populate listView by listBaremetalRct API.
1 parent acb6850 commit 58cb5ba

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎ui/scripts/globalSettings.js‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,10 @@
241241
listView: {
242242
id: 'baremetalRct',
243243
label: 'Baremetal Rack Configuration',
244-
fields: {
244+
fields: {
245+
id: {
246+
label: 'label.id'
247+
},
245248
url: {
246249
label: 'label.url'
247250
}
@@ -250,7 +253,13 @@
250253
var data = {};
251254
listViewDataProvider(args, data);
252255

253-
args.response.success({ data: [] });
256+
$.ajax({
257+
url: createURL("listBaremetalRct"),
258+
data: data,
259+
success: function(json) {
260+
args.response.success({ data: json.listbaremetalrctresponse.baremetalrct });
261+
}
262+
});
254263
},
255264
actions: {
256265
add: {

0 commit comments

Comments
 (0)