Tunnel creation: Public key is uneditable

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander 2018-10-24 14:23:18 +05:30
parent 3b77f824b6
commit 5b1876b998
1 changed files with 4 additions and 0 deletions

View File

@ -163,6 +163,10 @@ extension TunnelEditTableViewController {
} else if (field == .mtu) {
cell.placeholderText = "Automatic"
}
// Set editable
if (field == .publicKey) {
cell.isValueEditable = false
}
// Bind values to view model
cell.value = interfaceData[field]
cell.onValueChanged = { [weak interfaceData] value in