Skip to content

Commit e5e41b0

Browse files
committed
Remove ACL List action item
1 parent 933060d commit e5e41b0

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎ui/scripts/vpc.js‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,44 @@
609609

610610
detailView: {
611611
isMaximized: true,
612+
actions:{
613+
deleteacllist:{
614+
label:'Delete ACL List',
615+
messages: {
616+
confirm: function(args) {
617+
return 'Are you sure you want to delete this ACL list ?';
618+
},
619+
notification: function(args) {
620+
return 'Delete ACL list';
621+
}
622+
},
623+
action:function(args){
624+
$.ajax({
625+
url:createURL('deleteNetworkACLList&id=' + args.context.aclLists[0].id),
626+
success:function(json){
627+
var jid = json.deletenetworkacllistresponse.jobid;
628+
args.response.success(
629+
{_custom:
630+
{ jobId: jid
631+
}
632+
}
633+
);
634+
635+
},
636+
error:function(json){
637+
args.response.error(parseXMLHttpResponse(json));
638+
639+
}
640+
});
641+
},
642+
notification: {
643+
poll: pollAsyncJobResult
644+
}
645+
646+
}
647+
},
648+
649+
612650
tabs: {
613651

614652
details: {

0 commit comments

Comments
 (0)