cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pran...@apache.org
Subject git commit: updated refs/heads/4.2 to 0c7cfc2
Date Wed, 03 Jul 2013 09:26:20 GMT
Updated Branches:
  refs/heads/4.2 0314a9971 -> 0c7cfc266


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/0c7cfc26
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/0c7cfc26
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/0c7cfc26

Branch: refs/heads/4.2
Commit: 0c7cfc266eb09bb2c026779fb3eff6af46bd2846
Parents: 0314a99
Author: Pranav Saxena <psbits@gmail.com>
Authored: Wed Jul 3 14:48:32 2013 +0530
Committer: Pranav Saxena <psbits@gmail.com>
Committed: Wed Jul 3 14:53:05 2013 +0530

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/0c7cfc26/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 }


Mime
View raw message