iOS: Tunnel edit: Add missing enum values

This commit is contained in:
Roopesh Chander 2019-03-18 14:02:54 +05:30 committed by Jason A. Donenfeld
parent 36f7340daa
commit 42d7641b98
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))