Add zone-level granular settings UI

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

Branch: refs/heads/ui-granular-settings
Commit: 019e8cd0ff8fe45d0e867a42e9643c8b571c1725
Parents: 1bb0136
Author: Brian Federle <[email protected]>
Authored: Tue Apr 16 12:41:20 2013 -0700
Committer: Brian Federle <[email protected]>
Committed: Tue Apr 16 12:41:20 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/019e8cd0/ui/scripts/system.js
----------------------------------------------------------------------
diff --git a/ui/scripts/system.js b/ui/scripts/system.js
index a905412..11ae1f2 100644
--- a/ui/scripts/system.js
+++ b/ui/scripts/system.js
@@ -5381,6 +5381,28 @@
                         }
                       }
                     }
+                  },
+
+                  // Granular settings for zone
+                  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) {
+                          debugger;
+                          // call updateZoneLevelParamter
+                          args.response.success();
+                        }
+                      }
+                    })
                   }
                 }
               }

Reply via email to