diff --git a/webroot/config/bgp/ui/js/bgp_config.js b/webroot/config/bgp/ui/js/bgp_config.js index a72499813..732dbcbe2 100644 --- a/webroot/config/bgp/ui/js/bgp_config.js +++ b/webroot/config/bgp/ui/js/bgp_config.js @@ -870,6 +870,13 @@ function initComponents() { onClick: function(rowIndex){ onActionChange('edit-control',rowIndex); } + }, + { + title: 'Delete', + iconClass: 'icon-trash', + onClick: function(rowIndex){ + showRemoveWindow(rowIndex); + } } ], detail: { @@ -961,6 +968,30 @@ function initComponents() { $('#confirmPeers').modal({backdrop:'static', keyboard: false, show:false}); } +function showRemoveWindow(rowIndex) { + $.contrailBootstrapModal({ + id: 'confirmRemove', + title: 'Remove', + body: '