aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2019-01-06 18:51:06 +0530
committerRoopesh Chander <roop@roopc.net>2019-01-14 14:52:33 +0530
commitc2633987c3bc98c94981c599ac63e8a081ab605c (patch)
tree99f222c48ae28d1fdc8929c35e8d731bb897390a /WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
parentmacOS: Rename *Cell to *Row (diff)
downloadwireguard-apple-c2633987c3bc98c94981c599ac63e8a081ab605c.tar.xz
wireguard-apple-c2633987c3bc98c94981c599ac63e8a081ab605c.zip
macOS: Tunnel edit view
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to '')
-rw-r--r--WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift7
1 files changed, 4 insertions, 3 deletions
diff --git a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
index 8e7db434..9e84e120 100644
--- a/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
+++ b/WireGuard/WireGuard/UI/macOS/ViewController/TunnelDetailTableViewController.swift
@@ -191,7 +191,8 @@ class TunnelDetailTableViewController: NSViewController {
}
@objc func editButtonClicked() {
- print("editButtonClicked")
+ let tunnelEditVC = TunnelEditViewController(tunnelsManager: tunnelsManager, tunnel: tunnel)
+ presentAsSheet(tunnelEditVC)
}
@objc func statusCheckboxToggled(sender: AnyObject?) {
@@ -217,14 +218,14 @@ extension TunnelDetailTableViewController: NSTableViewDelegate {
case .interfaceFieldRow(let field):
let cell: KeyValueRow = tableView.dequeueReusableCell()
let localizedKeyString = modelRow.isTitleRow() ? modelRow.localizedSectionKeyString() : field.localizedUIString
- cell.key = tr(format: "macDetailFieldKey (%@)", localizedKeyString)
+ cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
cell.value = tunnelViewModel.interfaceData[field]
cell.isKeyInBold = modelRow.isTitleRow()
return cell
case .peerFieldRow(let peerData, let field):
let cell: KeyValueRow = tableView.dequeueReusableCell()
let localizedKeyString = modelRow.isTitleRow() ? modelRow.localizedSectionKeyString() : field.localizedUIString
- cell.key = tr(format: "macDetailFieldKey (%@)", localizedKeyString)
+ cell.key = tr(format: "macFieldKey (%@)", localizedKeyString)
cell.value = peerData[field]
cell.isKeyInBold = modelRow.isTitleRow()
return cell