Tunnel detail: Change title after editing completes

This commit is contained in:
Roopesh Chander 2018-10-29 02:21:19 +05:30
parent 6b969b7bdf
commit b9d6d194bc
1 changed files with 1 additions and 0 deletions

View File

@ -67,6 +67,7 @@ class TunnelDetailTableViewController: UITableViewController {
extension TunnelDetailTableViewController: TunnelEditTableViewControllerDelegate { extension TunnelDetailTableViewController: TunnelEditTableViewControllerDelegate {
func tunnelSaved(tunnel: TunnelContainer) { func tunnelSaved(tunnel: TunnelContainer) {
tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration()) tunnelViewModel = TunnelViewModel(tunnelConfiguration: tunnel.tunnelConfiguration())
self.title = tunnel.name
self.tableView.reloadData() self.tableView.reloadData()
} }
func tunnelEditingCancelled() { func tunnelEditingCancelled() {