You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bf...@apache.org on 2013/04/16 21:51:27 UTC
[6/7] git commit: updated refs/heads/ui-granular-settings to b54f643
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 <br...@citrix.com>
Authored: Tue Apr 16 12:47:08 2013 -0700
Committer: Brian Federle <br...@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();
+ }
+ }
+ })
}
}
}