cloudstack-commits mailing list archives

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


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

Branch: refs/heads/ui-granular-settings
Commit: ad38060e3a9fd45dda7de4fd10450b116db2283a
Parents: 9130cd0
Author: Brian Federle <brian.federle@citrix.com>
Authored: Tue Apr 16 12:47:08 2013 -0700
Committer: Brian Federle <brian.federle@citrix.com>
Committed: Tue Apr 16 12:47:08 2013 -0700

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


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/ad38060e/ui/scripts/accounts.js
----------------------------------------------------------------------
diff --git a/ui/scripts/accounts.js b/ui/scripts/accounts.js
index 8353d70..e663db8 100644
--- a/ui/scripts/accounts.js
+++ b/ui/scripts/accounts.js
@@ -895,6 +895,27 @@
 										}
 									});
                 }
+              },
+
+              // Granular settings for account
+              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 updateAccountLevelParameters
+                      args.response.success();
+                    }
+                  }
+                })
               }
             }
           }


Mime
View raw message