mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 UI - VPC - tier - implement Remove Tier action.
This commit is contained in:
parent
93b264b219
commit
33cf9468b6
|
|
@ -392,8 +392,10 @@
|
|||
action({
|
||||
context: context,
|
||||
response: {
|
||||
success: function(args) {
|
||||
success({ remove: true });
|
||||
success: function(args) {
|
||||
success($.extend(args, {
|
||||
remove: true
|
||||
}));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -399,11 +399,26 @@
|
|||
|
||||
remove: {
|
||||
label: 'Remove tier',
|
||||
action: function(args) {
|
||||
args.response.success();
|
||||
action: function(args) {
|
||||
$.ajax({
|
||||
url: createURL('deleteNetwork'),
|
||||
dataType: "json",
|
||||
data: {
|
||||
id: args.context.tiers[0].id
|
||||
},
|
||||
success: function(json) {
|
||||
var jid = json.deletenetworkresponse.jobid;
|
||||
args.response.success(
|
||||
{_custom:
|
||||
{jobId: jid
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
});
|
||||
},
|
||||
notification: {
|
||||
poll: function(args) { args.complete(); }
|
||||
poll: pollAsyncJobResult
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue