Tunnel list, detail: Deletion of tunnels

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander
2018-10-29 04:55:50 +05:30
parent c955c5a913
commit 0baca8bf58
2 changed files with 31 additions and 2 deletions
@@ -263,6 +263,10 @@ extension TunnelsListTableViewController: TunnelsManagerDelegate {
func tunnelsChanged() {
tableView.reloadData()
}
func tunnelRemoved(at index: Int) {
tableView.deleteRows(at: [IndexPath(row: index, section: 0)], with: .automatic)
}
}
class TunnelsListTableViewCell: UITableViewCell {