Skip to content

Commit ab6012f

Browse files
bfederlesebgoa
authored andcommitted
CLOUDSTACK-6272: Fix recover/restore VM actions
-Label recoverVirtualMachine as 'Recover VM' -Label restoreVirtualMachine as 'Reinstall VM' -Change confirmation text for restoreVirtualMachine to be more explicit -Change restoreVirtualMachine icon to 'recycle' symbol, to avoid confusion with the reboot VM icon Conflicts: ui/images/sprites.png ui/scripts/instances.js
1 parent 276f29c commit ab6012f

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

‎client/WEB-INF/classes/resources/messages.properties‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
label.reinstall.vm=Reinstall VM
18+
message.reinstall.vm=NOTE: Proceed with caution. This will cause the VM to be reinstalled from the template; data on the root disk will be lost. Extra data volumes, if any, will not be touched.
19+
label.recover.vm=Recover VM
20+
message.recover.vm=Please confirm that you would like to recover this VM.
1721
label.port=Port
1822
label.remove.ldap=Remove LDAP
1923
message.remove.ldap=Are you sure you want to delete the LDAP configuration?

‎ui/dictionary.jsp‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ under the License.
2525
<% long now = System.currentTimeMillis(); %>
2626
<script type="text/javascript">
2727
dictionary = {
28+
'label.recover.vm': '<fmt:message key="label.recover.vm" />',
29+
'message.recover.vm': '<fmt:message key="message.recover.vm" />',
30+
'label.reinstall.vm': '<fmt:message key="label.reinstall.vm" />',
31+
'message.reinstall.vm': '<fmt:message key="message.reinstall.vm" />',
2832
'label.port': '<fmt:message key="label.port" />',
2933
'label.remove.ldap': '<fmt:message key="label.remove.ldap" />',
3034
'message.remove.ldap': '<fmt:message key="message.remove.ldap" />',

‎ui/scripts/instances.js‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -652,14 +652,14 @@
652652
}
653653
},
654654
restore: {
655-
label: 'label.action.restore.instance',
655+
label: 'label.recover.vm',
656656
compactLabel: 'label.restore',
657657
messages: {
658658
confirm: function(args) {
659-
return 'message.action.restore.instance';
659+
return 'message.recover.vm';
660660
},
661661
notification: function(args) {
662-
return 'label.action.restore.instance';
662+
return 'label.recover.vm';
663663
}
664664
},
665665
action: function(args) {
@@ -686,14 +686,13 @@
686686
}
687687
},
688688
reset: {
689-
label: 'Reset VM',
690-
textLabel: 'Reset VM',
689+
label: 'label.reinstall.vm',
691690
messages: {
692691
confirm: function(args) {
693-
return 'Do you want to restore the VM ?';
692+
return 'message.reinstall.vm';
694693
},
695694
notification: function(args) {
696-
return 'Reset VM';
695+
return 'label.reinstall.vm';
697696
},
698697
complete: function(args) {
699698
if (args.password != null && args.password.length > 0)

0 commit comments

Comments
 (0)