Preshared key field in the detail view should just say 'enabled'
This commit is contained in:
parent
74f55febab
commit
9c0e001265
|
@ -111,6 +111,8 @@
|
||||||
"tunnelHandshakeTimestampHours hh:mm:ss (%@)" = "%@ hours";
|
"tunnelHandshakeTimestampHours hh:mm:ss (%@)" = "%@ hours";
|
||||||
"tunnelHandshakeTimestampMinutes mm:ss (%@)" = "%@ minutes";
|
"tunnelHandshakeTimestampMinutes mm:ss (%@)" = "%@ minutes";
|
||||||
|
|
||||||
|
"tunnelPeerPresharedKeyEnabled" = "enabled";
|
||||||
|
|
||||||
// Error alerts while creating / editing a tunnel configuration
|
// Error alerts while creating / editing a tunnel configuration
|
||||||
|
|
||||||
/* Alert title for error in the interface data */
|
/* Alert title for error in the interface data */
|
||||||
|
|
|
@ -370,6 +370,8 @@ extension TunnelDetailTableViewController {
|
||||||
cell.key = field.localizedUIString
|
cell.key = field.localizedUIString
|
||||||
if field == .persistentKeepAlive {
|
if field == .persistentKeepAlive {
|
||||||
cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
|
cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
|
||||||
|
} else if field == .preSharedKey {
|
||||||
|
cell.value = tr("tunnelPeerPresharedKeyEnabled")
|
||||||
} else {
|
} else {
|
||||||
cell.value = peerData[field]
|
cell.value = peerData[field]
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,6 +405,8 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
|
||||||
cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
|
cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
|
||||||
if field == .persistentKeepAlive {
|
if field == .persistentKeepAlive {
|
||||||
cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
|
cell.value = tr(format: "tunnelPeerPersistentKeepaliveValue (%@)", peerData[field])
|
||||||
|
} else if field == .preSharedKey {
|
||||||
|
cell.value = tr("tunnelPeerPresharedKeyEnabled")
|
||||||
} else {
|
} else {
|
||||||
cell.value = peerData[field]
|
cell.value = peerData[field]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue