bug 14585: cloudstack 3.0 UI - systemVM page - after destroy action completes, close detailView and remove it from listView.

This commit is contained in:
Jessica Wang 2012-04-02 17:03:28 -07:00
parent 3aed5ee830
commit 892a29c2ef
1 changed files with 4 additions and 4 deletions

View File

@ -3685,7 +3685,7 @@
}
},
destroy: {
remove: {
label: 'label.action.destroy.systemvm',
messages: {
confirm: function(args) {
@ -7434,17 +7434,17 @@
if (jsonObj.state == 'Running') {
allowedActions.push("stop");
allowedActions.push("restart");
allowedActions.push("destroy"); //destroy
allowedActions.push("remove");
allowedActions.push("viewConsole");
if (isAdmin())
allowedActions.push("migrate");
}
else if (jsonObj.state == 'Stopped') {
allowedActions.push("start");
allowedActions.push("destroy"); //destroy
allowedActions.push("remove");
}
else if (jsonObj.state == 'Error') {
allowedActions.push("destroy"); //destroy
allowedActions.push("remove");
}
return allowedActions;
}