Repository: cloudstack Updated Branches: refs/heads/master acb68509f -> 58cb5baae
CLOUDSTACK-7601: UI > Global Settings > Baremetal Rack Configuration > populate listView by listBaremetalRct API. Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/58cb5baa Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/58cb5baa Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/58cb5baa Branch: refs/heads/master Commit: 58cb5baae47c777d14efe09fd2663b2ada9ac202 Parents: acb6850 Author: Jessica Wang <jessicaw...@apache.org> Authored: Mon Sep 22 16:51:58 2014 -0700 Committer: Jessica Wang <jessicaw...@apache.org> Committed: Mon Sep 22 16:51:58 2014 -0700 ---------------------------------------------------------------------- ui/scripts/globalSettings.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/58cb5baa/ui/scripts/globalSettings.js ---------------------------------------------------------------------- diff --git a/ui/scripts/globalSettings.js b/ui/scripts/globalSettings.js index 2b121dd..f19de88 100644 --- a/ui/scripts/globalSettings.js +++ b/ui/scripts/globalSettings.js @@ -241,7 +241,10 @@ listView: { id: 'baremetalRct', label: 'Baremetal Rack Configuration', - fields: { + fields: { + id: { + label: 'label.id' + }, url: { label: 'label.url' } @@ -250,7 +253,13 @@ var data = {}; listViewDataProvider(args, data); - args.response.success({ data: [] }); + $.ajax({ + url: createURL("listBaremetalRct"), + data: data, + success: function(json) { + args.response.success({ data: json.listbaremetalrctresponse.baremetalrct }); + } + }); }, actions: { add: {