cloudstack 3.0 UI - site to site VPN - VPN Gateway - implement Delete VPN Gateway action.

This commit is contained in:
Jessica Wang 2012-07-19 16:55:30 -07:00
parent f243765758
commit 1fc67e4990
1 changed files with 34 additions and 0 deletions

View File

@ -713,6 +713,40 @@
},
detailView: {
name: 'label.details',
actions: {
remove: {
label: 'delete VPN Gateway',
messages: {
confirm: function(args) {
return 'Please confirm that you want to delete this VPN Gateway';
},
notification: function(args) {
return 'delete VPN Gateway';
}
},
action: function(args) {
$.ajax({
url: createURL("deleteVpnGateway"),
data: {
id: args.context.vpnGateway[0].id
},
success: function(json) {
var jid = json.deletevpngatewayresponse.jobid;
args.response.success(
{_custom:
{
jobId: jid
}
}
);
}
});
},
notification: {
poll: pollAsyncJobResult
}
}
},
tabs: {
details: {
title: 'label.details',