Skip to content

Commit 7b817a2

Browse files
author
Jessica Wang
committed
CLOUDSTACK-6272: UI > Instance > actions > replace internal action name "restore" with "recover", "reset" with "reinstall".
1 parent 15729f3 commit 7b817a2

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎ui/scripts/instances.js‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,9 @@
660660
poll: pollAsyncJobResult
661661
}
662662
},
663-
restore: {
663+
recover: {
664664
label: 'label.recover.vm',
665-
compactLabel: 'label.restore',
665+
compactLabel: 'label.recover.vm',
666666
messages: {
667667
confirm: function(args) {
668668
return 'message.recover.vm';
@@ -694,7 +694,7 @@
694694
}
695695
}
696696
},
697-
reset: {
697+
reinstall: {
698698
label: 'label.reinstall.vm',
699699
messages: {
700700
confirm: function(args) {
@@ -2197,7 +2197,7 @@
21972197

21982198
if (jsonObj.state == 'Destroyed') {
21992199
if (isAdmin() || isDomainAdmin()) {
2200-
allowedActions.push("restore");
2200+
allowedActions.push("recover");
22012201
}
22022202
if (isAdmin() || isDomainAdmin())
22032203
allowedActions.push("expunge");
@@ -2207,7 +2207,7 @@
22072207
if (jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true)
22082208
allowedActions.push("snapshot");
22092209
allowedActions.push("destroy");
2210-
allowedActions.push("reset");
2210+
allowedActions.push("reinstall");
22112211

22122212
//when userVm is running, scaleUp is not supported for KVM
22132213
if (jsonObj.hypervisor != 'KVM') {
@@ -2233,7 +2233,7 @@
22332233
allowedActions.push("edit");
22342234
allowedActions.push("start");
22352235
allowedActions.push("destroy");
2236-
allowedActions.push("reset");
2236+
allowedActions.push("reinstall");
22372237
if (jsonObj.hypervisor != 'KVM' || g_kvmsnapshotenabled == true)
22382238
allowedActions.push("snapshot");
22392239
allowedActions.push("scaleUp"); //when vm is stopped, scaleUp is supported for all hypervisors

0 commit comments

Comments
 (0)