Tunnel creation: Public key is uneditable

This commit is contained in:
Roopesh Chander 2018-10-24 14:23:18 +05:30
parent ad9e9b6666
commit e2663822bb
1 changed files with 4 additions and 0 deletions

View File

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