mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 new UI - network page - IP address page - hide Configuration tab if IP is elastic.
This commit is contained in:
parent
d7a45287a5
commit
fbba0dbbf0
|
|
@ -723,12 +723,14 @@
|
|||
|
||||
var disabledTabs = [];
|
||||
var ipAddress = args.context.ipAddresses[0];
|
||||
|
||||
if (!ipAddress.issourcenat ||
|
||||
(ipAddress.issourcenat && !ipAddress.vpnenabled)) {
|
||||
disabledTabs.push('vpn');
|
||||
}
|
||||
|
||||
}
|
||||
if(ipAddress.iselastic == true) {
|
||||
disabledTabs.push('vpn');
|
||||
disabledTabs.push('ipRules');
|
||||
}
|
||||
return disabledTabs;
|
||||
},
|
||||
actions: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue