Hide the delete cell while adding an entry

This commit is contained in:
Yishi Lin 2020-03-05 00:19:34 +08:00
parent 17ccf55c48
commit 9575bda711

View file

@ -123,9 +123,12 @@ class PasswordEditorTableViewController: UITableViewController {
],
[
[.type: PasswordEditorCellType.scanQRCodeCell],
[.type: PasswordEditorCellType.deletePasswordCell],
]
]
if self.password != nil {
tableData[additionsSection+1].append([.type: PasswordEditorCellType.deletePasswordCell])
}
updateTableData(withRespectTo: passwordGenerator.flavor)
}