cloudstack 3.0 UI - IP Address page - action filter - optimize status handling.

This commit is contained in:
Jessica Wang 2012-05-15 15:43:43 -07:00
parent 1347b2218c
commit 6ab317b60f

View File

@ -33,11 +33,7 @@
var allowedActions = args.context.actions;
var disallowedActions = [];
var item = args.context.item;
var status = item.state;
if (status == 'Released') {
return [];
}
var status = item.state;
if (status == 'Destroyed' ||
status == 'Releasing' ||
@ -46,7 +42,7 @@
status == 'Allocating' ||
item.account == 'system' ||
item.issystem == true ) {
disallowedActions = allowedActions;
return [];
}
if (item.isstaticnat) {