mirror of https://github.com/apache/cloudstack.git
bug 13918
Don't show VPN actions if IP's network's offering doesn't support VPN status 13918: resolved fixed reviewed-by: jessica
This commit is contained in:
parent
12aade4dc7
commit
bad588377c
|
|
@ -42,10 +42,16 @@
|
|||
disallowedActions.push('disableStaticNAT');
|
||||
}
|
||||
|
||||
if (item.vpnenabled) {
|
||||
disallowedActions.push('enableVPN');
|
||||
if ($.inArray('Vpn', $.map(args.context.networks[0].service,
|
||||
function(service) { return service.name; })) > -1) {
|
||||
if (item.vpnenabled) {
|
||||
disallowedActions.push('enableVPN');
|
||||
} else {
|
||||
disallowedActions.push('disableVPN');
|
||||
}
|
||||
} else {
|
||||
disallowedActions.push('disableVPN');
|
||||
disallowedActions.push('enableVPN');
|
||||
}
|
||||
|
||||
if (item.issourcenat){
|
||||
|
|
|
|||
Loading…
Reference in New Issue