Skip to content

Commit 892a29c

Browse files
author
Jessica Wang
committed
bug 14585: cloudstack 3.0 UI - systemVM page - after destroy action completes, close detailView and remove it from listView.
1 parent 3aed5ee commit 892a29c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ui/scripts/system.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -3685,7 +3685,7 @@
36853685
}
36863686
},
36873687

3688-
destroy: {
3688+
remove: {
36893689
label: 'label.action.destroy.systemvm',
36903690
messages: {
36913691
confirm: function(args) {
@@ -7434,17 +7434,17 @@
74347434
if (jsonObj.state == 'Running') {
74357435
allowedActions.push("stop");
74367436
allowedActions.push("restart");
7437-
allowedActions.push("destroy"); //destroy
7437+
allowedActions.push("remove");
74387438
allowedActions.push("viewConsole");
74397439
if (isAdmin())
74407440
allowedActions.push("migrate");
74417441
}
74427442
else if (jsonObj.state == 'Stopped') {
74437443
allowedActions.push("start");
7444-
allowedActions.push("destroy"); //destroy
7444+
allowedActions.push("remove");
74457445
}
74467446
else if (jsonObj.state == 'Error') {
7447-
allowedActions.push("destroy"); //destroy
7447+
allowedActions.push("remove");
74487448
}
74497449
return allowedActions;
74507450
}

0 commit comments

Comments
 (0)