Deletion buttons are shown in red

This commit is contained in:
Roopesh Chander 2018-11-01 23:53:09 +05:30
parent bf2031776b
commit 2bb42ac3ec
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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 }