Tunnel creation: Placeholders for Listen port, Pre-shared key, Persistent Keepalive

This commit is contained in:
Roopesh Chander 2018-10-30 18:50:56 +05:30
parent 13e3f4ae0a
commit 1039f1f35a
1 changed files with 6 additions and 1 deletions

View File

@ -190,7 +190,7 @@ extension TunnelEditTableViewController {
// Set placeholder text
if (field == .name || field == .privateKey) {
cell.placeholderText = "Required"
} else if (field == .mtu) {
} else if (field == .mtu || field == .listenPort) {
cell.placeholderText = "Automatic"
}
// Set editable
@ -273,7 +273,12 @@ extension TunnelEditTableViewController {
// Set placeholder text
if (field == .publicKey) {
cell.placeholderText = "Required"
} else if (field == .preSharedKey) {
cell.placeholderText = "Optional"
} else if (field == .persistentKeepAlive) {
cell.placeholderText = "Off"
}
// Set keyboardType
if (field == .persistentKeepAlive) {
cell.keyboardType = .numberPad
} else if (field == .allowedIPs) {