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
This commit is contained in:
Brian Federle 2014-03-21 13:26:47 -07:00 committed by Sebastien Goasguen
parent 276f29cad1
commit ab6012f194
3 changed files with 14 additions and 7 deletions

View File

@ -14,6 +14,10 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
label.reinstall.vm=Reinstall VM
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.
label.recover.vm=Recover VM
message.recover.vm=Please confirm that you would like to recover this VM.
label.port=Port
label.remove.ldap=Remove LDAP
message.remove.ldap=Are you sure you want to delete the LDAP configuration?

View File

@ -25,6 +25,10 @@ under the License.
<% long now = System.currentTimeMillis(); %>
<script type="text/javascript">
dictionary = {
'label.recover.vm': '<fmt:message key="label.recover.vm" />',
'message.recover.vm': '<fmt:message key="message.recover.vm" />',
'label.reinstall.vm': '<fmt:message key="label.reinstall.vm" />',
'message.reinstall.vm': '<fmt:message key="message.reinstall.vm" />',
'label.port': '<fmt:message key="label.port" />',
'label.remove.ldap': '<fmt:message key="label.remove.ldap" />',
'message.remove.ldap': '<fmt:message key="message.remove.ldap" />',

View File

@ -652,14 +652,14 @@
}
},
restore: {
label: 'label.action.restore.instance',
label: 'label.recover.vm',
compactLabel: 'label.restore',
messages: {
confirm: function(args) {
return 'message.action.restore.instance';
return 'message.recover.vm';
},
notification: function(args) {
return 'label.action.restore.instance';
return 'label.recover.vm';
}
},
action: function(args) {
@ -686,14 +686,13 @@
}
},
reset: {
label: 'Reset VM',
textLabel: 'Reset VM',
label: 'label.reinstall.vm',
messages: {
confirm: function(args) {
return 'Do you want to restore the VM ?';
return 'message.reinstall.vm';
},
notification: function(args) {
return 'Reset VM';
return 'label.reinstall.vm';
},
complete: function(args) {
if (args.password != null && args.password.length > 0)