You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by je...@apache.org on 2012/08/01 23:38:28 UTC
git commit: cloudstack 3.0 UI - autoscale is not supported in VPC. So,
hide autoscale button in LB listing in IP Addresses under VPC.
Updated Branches:
refs/heads/autoscale 58266c727 -> 8e6011fde
cloudstack 3.0 UI - autoscale is not supported in VPC. So, hide autoscale button in LB listing in IP Addresses under VPC.
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/8e6011fd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/8e6011fd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/8e6011fd
Branch: refs/heads/autoscale
Commit: 8e6011fde15b207f4683e9aa6a059169eb0fc081
Parents: 58266c7
Author: Jessica Wang <je...@citrix.com>
Authored: Wed Aug 1 14:37:23 2012 -0700
Committer: Jessica Wang <je...@citrix.com>
Committed: Wed Aug 1 14:37:23 2012 -0700
----------------------------------------------------------------------
ui/scripts/network.js | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/8e6011fd/ui/scripts/network.js
----------------------------------------------------------------------
diff --git a/ui/scripts/network.js b/ui/scripts/network.js
index e2cbf6e..243c474 100644
--- a/ui/scripts/network.js
+++ b/ui/scripts/network.js
@@ -2017,8 +2017,11 @@
var context = args.context;
var fields = args.fields;
- // Returns fields to be hidden
- return [];
+ var hiddenFields = [];
+ if('vpc' in args.context) { //from VPC section
+ hiddenFields.push('autoScale');
+ }
+ return hiddenFields; // Returns fields to be hidden
},
fields: {
'name': { edit: true, label: 'label.name', isEditable: true },