mirror of
https://github.com/passepartoutvpn/wireguard-apple.git
synced 2025-02-17 13:22:06 +00:00
Deletion buttons are shown in red
This commit is contained in:
parent
bf2031776b
commit
2bb42ac3ec
@ -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
|
||||
|
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user