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/04/18 19:56:40 UTC

git commit: updated refs/heads/ui-vm-affinity to 935b08b

Updated Branches:
  refs/heads/ui-vm-affinity 7566eae20 -> 935b08b21


CLOUDSTACK-2074: cloudstack UI - Affinity - instance detail page - add new tab "Affinity Groups".


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/935b08b2
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/935b08b2
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/935b08b2

Branch: refs/heads/ui-vm-affinity
Commit: 935b08b216c2b48c2035feecc9e14503de73a7cb
Parents: 7566eae
Author: Jessica Wang <je...@citrix.com>
Authored: Thu Apr 18 10:55:56 2013 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Thu Apr 18 10:55:56 2013 -0700

----------------------------------------------------------------------
 ui/scripts/instances.js |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/935b08b2/ui/scripts/instances.js
----------------------------------------------------------------------
diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js
index baf1823..95f23ed 100644
--- a/ui/scripts/instances.js
+++ b/ui/scripts/instances.js
@@ -1432,6 +1432,24 @@
             }
           },
 
+					/**
+           * Affinity Groups tab
+           */
+          affinityGroups: {
+            title: 'label.affinity.groups',
+            multiple: true,
+            fields: [
+              {
+                id: { label: 'ID' },
+                name: { label: 'label.name' },
+                description: { label: 'label.description' }
+              }
+            ],
+            dataProvider: function(args) {
+              args.response.success({data: args.context.instances[0].affinitygroup});
+            }
+          },
+					
           /**
            * Statistics tab
            */