Support deleting password

This commit is contained in:
Bob Sun 2017-03-21 13:16:25 -07:00
parent 1141e267d9
commit ee9776ab71
No known key found for this signature in database
GPG key ID: 1F86BA2052FED3B4
11 changed files with 91 additions and 53 deletions

View file

@ -9,15 +9,13 @@
import UIKit
class EditPasswordTableViewController: PasswordEditorTableViewController {
var password: Password?
override func viewDidLoad() {
tableData = [
[[.type: PasswordEditorCellType.textFieldCell, .title: "name", .content: password!.name]],
[[.type: PasswordEditorCellType.fillPasswordCell, .title: "password", .content: password!.password],
[.type: PasswordEditorCellType.passwordLengthCell, .title: "passwordlength"]],
[[.type: PasswordEditorCellType.textViewCell, .title: "additions", .content: password!.getAdditionsPlainText()]],
[[.type: PasswordEditorCellType.deletePasswordCell]],
]
super.viewDidLoad()
}