diff options
author | Roopesh Chander <roop@roopc.net> | 2018-11-01 23:53:09 +0530 |
---|---|---|
committer | Roopesh Chander <roop@roopc.net> | 2018-11-01 23:53:09 +0530 |
commit | abd02975c59b3cf6188e12d38fb22b3791b404b0 (patch) | |
tree | d6d22e31a7b54ab9693b8154d40ee944af548376 /WireGuard | |
parent | Tunnel edit: Highlight erroring field keys in red (diff) | |
download | wireguard-apple-abd02975c59b3cf6188e12d38fb22b3791b404b0.tar.xz wireguard-apple-abd02975c59b3cf6188e12d38fb22b3791b404b0.zip |
Deletion buttons are shown in red
Signed-off-by: Roopesh Chander <roop@roopc.net>
Diffstat (limited to 'WireGuard')
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift | 1 | ||||
-rw-r--r-- | WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift index dc63258..4094743 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift @@ -198,6 +198,7 @@ extension TunnelDetailTableViewController { // Delete configuration let cell = tableView.dequeueReusableCell(withIdentifier: TunnelDetailTableViewButtonCell.id, for: indexPath) as! TunnelDetailTableViewButtonCell cell.buttonText = "Delete tunnel" + cell.button.tintColor = UIColor.red cell.onTapped = { [weak self] in guard let s = self else { return } s.showConfirmationAlert(message: "Delete this tunnel?", buttonTitle: "Delete", from: cell) { [weak s] in diff --git a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift index c9f159d..7a3c935 100644 --- a/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift +++ b/WireGuard/WireGuard/UI/iOS/TunnelEditTableViewController.swift @@ -236,6 +236,7 @@ extension TunnelEditTableViewController { if (field == .deletePeer) { let cell = tableView.dequeueReusableCell(withIdentifier: TunnelEditTableViewButtonCell.id, for: indexPath) as! TunnelEditTableViewButtonCell cell.buttonText = field.rawValue + cell.button.tintColor = UIColor.red cell.onTapped = { [weak self, weak peerData] in guard let peerData = peerData else { return } guard let s = self else { return } |