Preshared key field in the detail view should just say 'enabled'
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
@@ -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]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user