mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
cloudstack 3.0 UI - IP Address page - action filter - optimize status handling.
This commit is contained in:
parent
1347b2218c
commit
6ab317b60f
@ -35,10 +35,6 @@
|
||||
var item = args.context.item;
|
||||
var status = item.state;
|
||||
|
||||
if (status == 'Released') {
|
||||
return [];
|
||||
}
|
||||
|
||||
if (status == 'Destroyed' ||
|
||||
status == 'Releasing' ||
|
||||
status == 'Released' ||
|
||||
@ -46,7 +42,7 @@
|
||||
status == 'Allocating' ||
|
||||
item.account == 'system' ||
|
||||
item.issystem == true ) {
|
||||
disallowedActions = allowedActions;
|
||||
return [];
|
||||
}
|
||||
|
||||
if (item.isstaticnat) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user