mirror of https://github.com/apache/cloudstack.git
bug 14585: cloudstack 3.0 UI - systemVM page - after destroy action completes, close detailView and remove it from listView.
This commit is contained in:
parent
3aed5ee830
commit
892a29c2ef
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue