CLOUDSTACK-747: internalLb in VPC - populate detailView of internal LB.
Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/41f9a12d Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/41f9a12d Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/41f9a12d Branch: refs/heads/master Commit: 41f9a12d38b7f405a1424089dbdd640f9dd3651e Parents: c89ca6a Author: Jessica Wang <jessicaw...@apache.org> Authored: Tue May 21 13:48:27 2013 -0700 Committer: Jessica Wang <jessicaw...@apache.org> Committed: Tue May 21 13:48:27 2013 -0700 ---------------------------------------------------------------------- ui/scripts/vpc.js | 36 +++++++++++++++++++++++++++++++++++- 1 files changed, 35 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/41f9a12d/ui/scripts/vpc.js ---------------------------------------------------------------------- diff --git a/ui/scripts/vpc.js b/ui/scripts/vpc.js index d100aeb..7778a2d 100644 --- a/ui/scripts/vpc.js +++ b/ui/scripts/vpc.js @@ -432,7 +432,41 @@ } } } - } + }, + + detailView: { + name: 'Internal Lb details', + actions: { + //assignVm: { + + //} + }, + tabs: { + details: { + title: 'label.details', + fields: [ + { + name: { label: 'label.name' } + }, + { + id: { label: 'label.id' } + } + ], + dataProvider: function(args) { + $.ajax({ + url: createURL('listLoadBalancers'), + data: { + id: args.context.internalLoadBalancers[0].id + }, + success: function(json) { + var item = json.listloadbalancerssresponse.loadbalancer[0]; + args.response.success({ data: item }); + } + }); + } + } + } + } } },