You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2013/07/03 11:24:54 UTC

git commit: updated refs/heads/master-6-17-stable to 58e7360

Updated Branches:
  refs/heads/master-6-17-stable c4bfddfc5 -> 58e736092


CLOUDSTACK-2162: Scope parameter for adding primary storage for a basic zone set up


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

Branch: refs/heads/master-6-17-stable
Commit: 58e736092d4d3d8420393c7d6f59610393f4fd48
Parents: c4bfddf
Author: Pranav Saxena <ps...@gmail.com>
Authored: Wed Jul 3 14:48:32 2013 +0530
Committer: Pranav Saxena <ps...@gmail.com>
Committed: Wed Jul 3 14:51:57 2013 +0530

----------------------------------------------------------------------
 ui/scripts/ui-custom/installWizard.js | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/58e73609/ui/scripts/ui-custom/installWizard.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui-custom/installWizard.js b/ui/scripts/ui-custom/installWizard.js
index 9f1f4c7..c53a642 100644
--- a/ui/scripts/ui-custom/installWizard.js
+++ b/ui/scripts/ui-custom/installWizard.js
@@ -609,6 +609,25 @@
             }
           },
 
+        scope:{
+           label:'label.scope',
+           select:function(args){
+             var scopeData=[];
+                //intelligence to handle different hypervisors to be added here
+           /*  if( selectedHypervisor == 'XenServer'){
+                       scopeData.push({ id: 'cluster', description: _l('label.cluster') });
+               }*/
+             // else if (selectedHypervisor == 'KVM'){
+                  scopeData.push({ id: 'cluster', description: _l('label.cluster') });
+                  scopeData.push({ id: 'zone', description: _l('label.zone.wide') });
+
+              args.response.success({
+
+                data: scopeData
+              });
+           }
+          },
+
           server: {
             label: 'label.server',
             validation: { required: true }