Update password in the destination controller when save edit (#688)
This commit is contained in:
parent
0f482709ae
commit
dd4dd174d4
2 changed files with 4 additions and 1 deletions
|
|
@ -28,6 +28,9 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
|
||||||
if password!.plainText != editedPlainText || password!.path != path {
|
if password!.plainText != editedPlainText || password!.path != path {
|
||||||
password!.updatePassword(name: name, path: path, plainText: editedPlainText)
|
password!.updatePassword(name: name, path: path, plainText: editedPlainText)
|
||||||
}
|
}
|
||||||
|
if let controller = segue.destination as? PasswordDetailTableViewController {
|
||||||
|
controller.password = password
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private var password: Password?
|
var password: Password?
|
||||||
private var passwordImage: UIImage?
|
private var passwordImage: UIImage?
|
||||||
private var oneTimePasswordIndexPath: IndexPath?
|
private var oneTimePasswordIndexPath: IndexPath?
|
||||||
private var shouldPopCurrentView = false
|
private var shouldPopCurrentView = false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue