mirror of https://github.com/apache/cloudstack.git
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:
parent
ced94b532b
commit
cee948681f
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Reference in New Issue