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 04e030b86e
commit 066678ebe6
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) {
@ -7435,17 +7435,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;
}