iOS: Tunnel edit: Add missing enum values

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2019-03-18 14:02:54 +05:30 committed by Jason A. Donenfeld
parent bca9fead5e
commit 0dd22ca45a
1 changed files with 2 additions and 0 deletions

View File

@ -251,6 +251,8 @@ extension TunnelEditTableViewController {
cell.keyboardType = .numberPad
case .publicKey, .generateKeyPair:
cell.keyboardType = .default
case .status, .toggleStatus:
fatalError("Unexpected interface field")
}
cell.isValueValid = (!tunnelViewModel.interfaceData.fieldsWithError.contains(field))