Fix a bug introduced by commit 5a02cb7 .

- In that commit, the "delete password" in the edit view would be disabled by the presence of the "password length slider".
This commit is contained in:
Yishi Lin 2017-03-24 01:10:26 +08:00
parent 3b3904fb40
commit 2107954cd3
3 changed files with 42 additions and 21 deletions

View file

@ -12,7 +12,8 @@ class EditPasswordTableViewController: PasswordEditorTableViewController {
override func viewDidLoad() {
tableData = [
[[.type: PasswordEditorCellType.textFieldCell, .title: "name", .content: password!.name]],
[[.type: PasswordEditorCellType.fillPasswordCell, .title: "password", .content: password!.password]],
[[.type: PasswordEditorCellType.fillPasswordCell, .title: "password", .content: password!.password],
[.type: PasswordEditorCellType.passwordLengthCell, .title: "passwordlength"]],
[[.type: PasswordEditorCellType.textViewCell, .title: "additions", .content: password!.getAdditionsPlainText()]],
[[.type: PasswordEditorCellType.deletePasswordCell]],
]