Tunnel edit: Set correct title when editing
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
d48a4382b7
commit
0396a3550c
|
@ -53,7 +53,7 @@ class TunnelEditTableViewController: UITableViewController {
|
|||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
self.title = "New configuration"
|
||||
self.title = (tunnel == nil) ? "New configuration" : "Edit configuration"
|
||||
self.navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: .save, target: self, action: #selector(saveTapped))
|
||||
self.navigationItem.leftBarButtonItem = UIBarButtonItem(barButtonSystemItem: .cancel, target: self, action: #selector(cancelTapped))
|
||||
|
||||
|
|
Loading…
Reference in New Issue