cloudstack 3.0 UI - autoscale is not supported in VPC. So, hide autoscale button in LB listing in IP Addresses under VPC.

This commit is contained in:
Jessica Wang 2012-07-31 16:45:22 -07:00
parent ced94b532b
commit cee948681f
1 changed files with 6 additions and 3 deletions

View File

@ -2241,9 +2241,12 @@
fieldPreFilter: function(args) {
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 },