bug 14418: cloudstack 3.0 UI - network - security group - after remove action completes, close detailView and remove corresponding row from listView.

This commit is contained in:
Jessica Wang 2012-04-11 16:14:46 -07:00
parent 8084318e5e
commit 38e54d35e0

View File

@ -70,7 +70,7 @@
if (item.issourcenat){
disallowedActions.push('enableStaticNAT');
disallowedActions.push('disableStaticNAT');
disallowedActions.push('destroy');
disallowedActions.push('remove');
}
allowedActions = $.grep(allowedActions, function(item) {
@ -88,7 +88,7 @@
if (isSecurityGroupOwner &&
args.context.item.state != 'Destroyed' &&
args.context.item.name != 'default') {
allowedActions.push('destroy');
allowedActions.push('remove');
}
return allowedActions;
@ -2891,7 +2891,7 @@
},
actions: {
destroy: {
remove: {
label: 'label.action.delete.security.group',
messages: {
confirm: function(args) {