Deletion buttons are shown in red
Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
parent
46e9eddecc
commit
abd02975c5
|
@ -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