Skip to content

Commit 15729f3

Browse files
committed
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
1 parent 2adb9af commit 15729f3

4 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
label.configure.ldap=Configure LDAP

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/images/sprites.png

521 Bytes
Loading

ui/scripts/instances.js

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -661,14 +661,14 @@
661661
}
662662
},
663663
restore: {
664-
label: 'label.action.restore.instance',
664+
label: 'label.recover.vm',
665665
compactLabel: 'label.restore',
666666
messages: {
667667
confirm: function(args) {
668-
return 'message.action.restore.instance';
668+
return 'message.recover.vm';
669669
},
670670
notification: function(args) {
671-
return 'label.action.restore.instance';
671+
return 'label.recover.vm';
672672
}
673673
},
674674
action: function(args) {
@@ -695,14 +695,13 @@
695695
}
696696
},
697697
reset: {
698-
label: 'label.resetVM',
699-
textLabel: 'label.resetVM',
698+
label: 'label.reinstall.vm',
700699
messages: {
701700
confirm: function(args) {
702-
return 'message.restoreVM';
701+
return 'message.reinstall.vm';
703702
},
704703
notification: function(args) {
705-
return 'label.resetVM';
704+
return 'label.reinstall.vm';
706705
},
707706
complete: function(args) {
708707
if (args.password != null && args.password.length > 0)

0 commit comments

Comments
 (0)