mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - gateways - static route - implement Remove action.
This commit is contained in:
parent
c5f8712b4b
commit
b727c58497
|
|
@ -561,15 +561,31 @@
|
|||
},
|
||||
actions: {
|
||||
destroy: {
|
||||
label: 'Remove ACL',
|
||||
action: function(args) {
|
||||
args.response.success({
|
||||
notification: {
|
||||
label: 'Remove static route from gateway',
|
||||
poll: function(args) { args.complete(); }
|
||||
label: 'Remove static route',
|
||||
action: function(args) {
|
||||
//debugger;
|
||||
$.ajax({
|
||||
url: createURL('deleteStaticRoute'),
|
||||
data: {
|
||||
id: args.context.multiRule[0].id
|
||||
},
|
||||
dataType: 'json',
|
||||
async: true,
|
||||
success: function(data) {
|
||||
var jobID = data.deletestaticrouteresponse.jobid;
|
||||
|
||||
args.response.success({
|
||||
_custom: {
|
||||
jobId: jobID
|
||||
},
|
||||
notification: {
|
||||
label: 'Remove static route',
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
dataProvider: function(args) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue