mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
bug 4556: instance page - localize middle menu action Destroy Instance.
This commit is contained in:
parent
6dbf9339be
commit
2147d41246
@ -426,6 +426,8 @@ label.action.stop.instance=Stop Instance
|
||||
label.action.stop.instance.processing=Stopping Instance....
|
||||
label.action.reboot.instance=Reboot Instance
|
||||
label.action.reboot.instance.processing=Rebooting Instance....
|
||||
label.action.destroy.instance=Destroy Instance
|
||||
label.action.destroy.instance.processing=Destroying Instance....
|
||||
|
||||
label.action.edit.account=Edit account
|
||||
label.action.resource.limits=Resource limits
|
||||
@ -453,6 +455,7 @@ label.action.delete.user.processing=Deleting User....
|
||||
message.action.start.instance=Please confirm you want to start instance
|
||||
message.action.stop.instance=Please confirm you want to stop instance
|
||||
message.action.reboot.instance=Please confirm you want to reboot instance
|
||||
message.action.destroy.instance=Please confirm you want to destroy instance
|
||||
|
||||
message.edit.limits=Please specify limits to the following resources. A "-1" indicates no limit to the amount of resources create.
|
||||
message.disable.account=Please confirm you want to disable this account. By disabling the account, all users for this account will no longer have access to their cloud resources. All running virtual machines will be immediately shut down.
|
||||
|
||||
@ -15,7 +15,10 @@ dictionary = {
|
||||
'message.action.stop.instance' : '<fmt:message key="message.action.stop.instance"/>',
|
||||
'label.action.reboot.instance' : '<fmt:message key="label.action.reboot.instance"/>',
|
||||
'label.action.reboot.instance.processing' : '<fmt:message key="label.action.reboot.instance.processing"/>',
|
||||
'message.action.reboot.instance' : '<fmt:message key="message.action.reboot.instance"/>'
|
||||
'message.action.reboot.instance' : '<fmt:message key="message.action.reboot.instance"/>',
|
||||
'label.action.destroy.instance' : '<fmt:message key="label.action.destroy.instance"/>',
|
||||
'label.action.destroy.instance.processing' : '<fmt:message key="label.action.destroy.instance.processing"/>',
|
||||
'message.action.destroy.instance' : '<fmt:message key="message.action.destroy.instance"/>'
|
||||
};
|
||||
</script>
|
||||
|
||||
|
||||
@ -294,15 +294,15 @@ function bindDestroyVMButton() {
|
||||
}
|
||||
|
||||
$("#dialog_confirmation")
|
||||
.text("Please confirm you want to destroy instance")
|
||||
.text(dictionary["message.action.destroy.instance"])
|
||||
.dialog('option', 'buttons', {
|
||||
"Confirm": function() {
|
||||
$(this).dialog("close");
|
||||
|
||||
var apiInfo = {
|
||||
label: "Destroy Instance",
|
||||
label: "label.action.destroy.instance",
|
||||
isAsyncJob: true,
|
||||
inProcessText: "Destroying Instance....",
|
||||
inProcessText: "label.action.destroy.instance.processing",
|
||||
asyncJobResponse: "destroyvirtualmachineresponse",
|
||||
afterActionSeccessFn: function(json, $midmenuItem1, id) {
|
||||
var jsonObj = json.queryasyncjobresultresponse.jobresult.virtualmachine;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user