From 628b25613df79902614bf71d1510820bd7372c45 Mon Sep 17 00:00:00 2001 From: Hwee-Boon Yar Date: Sat, 25 Aug 2018 23:49:24 +0800 Subject: [PATCH] Fix: wrong text shown in token transfer UI --- .../Transfer/Coordinators/TransferNFTCoordinator.swift | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/AlphaWallet/Transfer/Coordinators/TransferNFTCoordinator.swift b/AlphaWallet/Transfer/Coordinators/TransferNFTCoordinator.swift index b75e7f35e..2bb5cc702 100644 --- a/AlphaWallet/Transfer/Coordinators/TransferNFTCoordinator.swift +++ b/AlphaWallet/Transfer/Coordinators/TransferNFTCoordinator.swift @@ -20,14 +20,17 @@ class TransferNFTCoordinator: Coordinator { let account: Account let viewController: UIViewController var statusViewController: StatusViewController? + var address: Address? weak var delegate: TransferNFTCoordinatorDelegate? var status = StatusViewControllerViewModel.State.processing { didSet { + guard let address = address else { return } + let tokenTypeName = XMLHandler(contract: address.eip55String).getTokenTypeName(.singular) statusViewController?.configure(viewModel: .init( state: status, - inProgressText: R.string.localizable.aClaimTicketInProgressTitle(), - succeededTextText: R.string.localizable.aClaimTicketSuccessTitle(), - failedText: R.string.localizable.aClaimTicketFailedTitle() + inProgressText: R.string.localizable.aWalletTicketTokenTransferInProgressTitle(tokenTypeName), + succeededTextText: R.string.localizable.aWalletTicketTokenTransferSuccessTitle(tokenTypeName), + failedText: R.string.localizable.aWalletTicketTokenTransferFailedTitle(tokenTypeName) )) } } @@ -44,6 +47,7 @@ class TransferNFTCoordinator: Coordinator { func start() { guard let address = validateAddress() else { return } + self.address = address showProgressViewController(address: address) transfer(address: address) }