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-08-01 14:37:23 -07:00 committed by Vijay Venkatachalam
parent 45891a9269
commit 4abf8ebeac
1 changed files with 5 additions and 2 deletions

View File

@ -2421,8 +2421,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 },