Preshared key field in the detail view should just say 'enabled'

This commit is contained in:
Roopesh Chander 2019-02-12 19:25:42 +05:30
parent 74f55febab
commit 9c0e001265
3 changed files with 6 additions and 0 deletions

View File

@ -111,6 +111,8 @@
"tunnelHandshakeTimestampHours hh:mm:ss (%@)" = "%@ hours";
"tunnelHandshakeTimestampMinutes mm:ss (%@)" = "%@ minutes";
"tunnelPeerPresharedKeyEnabled" = "enabled";
// Error alerts while creating / editing a tunnel configuration
/* Alert title for error in the interface data */

View File

@ -370,6 +370,8 @@ extension TunnelDetailTableViewController {
cell.key = field.localizedUIString
if field == .persistentKeepAlive {
cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
} else if field == .preSharedKey {
cell.value = tr("tunnelPeerPresharedKeyEnabled")
} else {
cell.value = peerData[field]
}

View File

@ -405,6 +405,8 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
if field == .persistentKeepAlive {
cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
} else if field == .preSharedKey {
cell.value = tr("tunnelPeerPresharedKeyEnabled")
} else {
cell.value = peerData[field]
}