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:
Jessica Wang 2012-01-23 13:41:25 -08:00
parent bd026c50a7
commit b97358f32d

View File

@ -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;
});