You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2013/05/21 22:49:00 UTC
git commit: updated refs/heads/ui-vpc-redesign to 41f9a12
Updated Branches:
refs/heads/ui-vpc-redesign c89ca6a92 -> 41f9a12d3
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/ui-vpc-redesign
Commit: 41f9a12d38b7f405a1424089dbdd640f9dd3651e
Parents: c89ca6a
Author: Jessica Wang <je...@apache.org>
Authored: Tue May 21 13:48:27 2013 -0700
Committer: Jessica Wang <je...@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 });
+ }
+ });
+ }
+ }
+ }
+ }
}
},