Skip to content

Commit

Permalink
reload table view on import switch
Browse files Browse the repository at this point in the history
  • Loading branch information
vikmeup committed Aug 25, 2018
1 parent 39d8b67 commit 4c6bf18
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Trust/Wallet/ViewControllers/ImportWalletViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,24 +235,21 @@ final class ImportWalletViewController: FormViewController {
switch type {
case .keystore:
keystoreRow?.value = string
keystoreRow?.reload()
case .privateKey:
privateKeyRow?.value = string
privateKeyRow?.reload()
case .address:
guard let result = QRURLParser.from(string: string) else { return }
addressRow?.value = result.address
addressRow?.reload()
case .mnemonic:
phraseRow?.value = string
phraseRow?.reload()
}
tableView.reloadData()
}

@objc func pasteAddressAction() {
let value = UIPasteboard.general.string?.trimmed
addressRow?.value = value
addressRow?.reload()
tableView.reloadData()
}

required init?(coder aDecoder: NSCoder) {
Expand Down

0 comments on commit 4c6bf18

Please sign in to comment.