cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bfede...@apache.org
Subject [3/7] git commit: updated refs/heads/ui-granular-settings to b54f643
Date Tue, 16 Apr 2013 19:51:24 GMT
Add cluster-level parameters


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

Branch: refs/heads/ui-granular-settings
Commit: 59d0541bac54b805dc80ef575dea097d8314a849
Parents: 019e8cd
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Apr 16 12:46:23 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Apr 16 12:46:23 2013 -0700

----------------------------------------------------------------------
 ui/scripts/system.js |   22 +++++++++++++++++++++-
 1 files changed, 21 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/59d0541b/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index 11ae1f2..2a18eed 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -5397,7 +5397,6 @@
                       },
                       actions: {
                         edit: function(args) {
-                          debugger;
                           // call updateZoneLevelParamter
                           args.response.success();
                         }
@@ -8800,6 +8799,27 @@
                     });
                   }
                 }
+              },
+
+              // Granular settings for cluster
+              settings: {
+                title: 'label.menu.global.settings',
+                custom: cloudStack.uiCustom.granularSettings({
+                  dataProvider: function(args) {
+                    args.response.success({
+                      data: [
+                        { name: 'config.param.1', value: 1 },
+                        { name: 'config.param.2', value: 2 }
+                      ]
+                    });
+                  },
+                  actions: {
+                    edit: function(args) {
+                      // call updateClusterLevelParameters
+                      args.response.success();
+                    }
+                  }
+                })
               }
             }
           }


Mime
View raw message