mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - IP Address - PF, LB - if IP is associated with a tier, hide tier dropdown when creating PF, LB rule.
This commit is contained in:
parent
708b4f7003
commit
663ba8c898
|
|
@ -2421,13 +2421,18 @@
|
|||
});
|
||||
|
||||
// Check if tiers are present; hide/show header drop-down
|
||||
var $headerFields = $multi.find('.header-fields');
|
||||
if ('vpc' in args.context) {
|
||||
$headerFields.show();
|
||||
}
|
||||
var $headerFields = $multi.find('.header-fields');
|
||||
if ('vpc' in args.context) {
|
||||
if(args.context.ipAddresses[0].associatednetworkid == null) {
|
||||
$headerFields.show();
|
||||
}
|
||||
else {
|
||||
$headerFields.hide();
|
||||
}
|
||||
}
|
||||
else if('networks' in args.context){
|
||||
$headerFields.hide();
|
||||
}
|
||||
$headerFields.hide();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -2653,9 +2658,14 @@
|
|||
});
|
||||
|
||||
// Check if tiers are present; hide/show header drop-down
|
||||
var $headerFields = $multi.find('.header-fields');
|
||||
var $headerFields = $multi.find('.header-fields');
|
||||
if ('vpc' in args.context) {
|
||||
$headerFields.show();
|
||||
if(args.context.ipAddresses[0].associatednetworkid == null) {
|
||||
$headerFields.show();
|
||||
}
|
||||
else {
|
||||
$headerFields.hide();
|
||||
}
|
||||
}
|
||||
else if('networks' in args.context){
|
||||
$headerFields.hide();
|
||||
|
|
|
|||
Loading…
Reference in New Issue