Skip to content

Commit e18c79f

Browse files
committed
[trello.com/c/ouNP4Ezx] Show clock icon (before was pending) while transactions are loading in the transaction list
1 parent e7a2f4d commit e18c79f

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

Adamant/Modules/Wallets/TransactionTableViewCell.swift

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -187,18 +187,20 @@ final class TransactionTableViewCell: UITableViewCell {
187187
dateLabel.textColor = transaction.transactionStatus?.color ?? .adamant.secondary
188188

189189
switch transaction.transactionStatus {
190-
case .success, .inconsistent:
191-
if let date = transaction.dateValue {
192-
dateLabel.text = date.humanizedDateTime()
193-
} else {
194-
dateLabel.text = nil
195-
}
196-
case .failed:
197-
dateLabel.text = TransactionStatus.failed.localized
198-
case .pending, .registered, .notInitiated:
199-
dateLabel.text = TransactionStatus.pending.localized
200-
default:
201-
dateLabel.text = TransactionDetailsViewControllerBase.awaitingValueString
190+
case .success, .inconsistent:
191+
if let date = transaction.dateValue {
192+
dateLabel.text = date.humanizedDateTime()
193+
} else {
194+
dateLabel.text = nil
195+
}
196+
case .failed:
197+
dateLabel.text = TransactionStatus.failed.localized
198+
case .pending, .registered:
199+
dateLabel.text = TransactionStatus.pending.localized
200+
case .notInitiated:
201+
dateLabel.text = TransactionDetailsViewControllerBase.awaitingValueString
202+
default:
203+
dateLabel.text = TransactionDetailsViewControllerBase.awaitingValueString
202204
}
203205

204206
if let partnerName = transaction.partnerName {

0 commit comments

Comments
 (0)