mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
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…
x
Reference in New Issue
Block a user