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 - detail view - no actions are allowed if IP is elastic.
This commit is contained in:
parent
bd026c50a7
commit
b97358f32d
@ -15,7 +15,8 @@
|
||||
status == 'Released' ||
|
||||
status == 'Creating' ||
|
||||
status == 'Allocating' ||
|
||||
item.account == 'system') {
|
||||
item.account == 'system' ||
|
||||
item.iselastic == true ) {
|
||||
disallowedActions = allowedActions;
|
||||
}
|
||||
|
||||
@ -40,10 +41,6 @@
|
||||
disallowedActions.push('disableVPN');
|
||||
}
|
||||
|
||||
if(item.iselastic) {
|
||||
disallowedActions.push('destroy');
|
||||
}
|
||||
|
||||
allowedActions = $.grep(allowedActions, function(item) {
|
||||
return $.inArray(item, disallowedActions) == -1;
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user