aboutsummaryrefslogtreecommitdiffstats
path: root/WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
diff options
context:
space:
mode:
authorRoopesh Chander <roop@roopc.net>2018-11-01 23:53:09 +0530
committerRoopesh Chander <roop@roopc.net>2018-11-01 23:53:09 +0530
commitabd02975c59b3cf6188e12d38fb22b3791b404b0 (patch)
treed6d22e31a7b54ab9693b8154d40ee944af548376 /WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift
parentTunnel edit: Highlight erroring field keys in red (diff)
downloadwireguard-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/WireGuard/UI/iOS/TunnelDetailTableViewController.swift')
-rw-r--r--WireGuard/WireGuard/UI/iOS/TunnelDetailTableViewController.swift1
1 files changed, 1 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