diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-08-11 09:54:34 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-08-11 09:54:34 +0800 |
commit | 5ef80495cfd47a8f5e4caf4b16842155420de62e (patch) | |
tree | 079274ed4834561e528956e05d1cc6d2e81fabce /ui/app/actions.js | |
parent | e2be22a4b722df608cb764042cc8ade6664414d8 (diff) | |
download | tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.gz tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.bz2 tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.lz tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.xz tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.tar.zst tangerine-wallet-browser-5ef80495cfd47a8f5e4caf4b16842155420de62e.zip |
refactor to support multiple hw wallets
Diffstat (limited to 'ui/app/actions.js')
-rw-r--r-- | ui/app/actions.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/actions.js b/ui/app/actions.js index bd5d25327..04af9d7c8 100644 --- a/ui/app/actions.js +++ b/ui/app/actions.js @@ -91,7 +91,7 @@ var actions = { connectHardware, checkHardwareStatus, forgetDevice, - unlockTrezorAccount, + unlockHardwareWalletAccount, NEW_ACCOUNT_SCREEN: 'NEW_ACCOUNT_SCREEN', navigateToNewAccountScreen, resetAccount, @@ -702,12 +702,12 @@ function connectHardware (deviceName, page) { } } -function unlockTrezorAccount (index) { - log.debug(`background.unlockTrezorAccount`, index) +function unlockHardwareWalletAccount (index, deviceName) { + log.debug(`background.unlockHardwareWalletAccount`, index, deviceName) return (dispatch, getState) => { dispatch(actions.showLoadingIndication()) return new Promise((resolve, reject) => { - background.unlockTrezorAccount(index, (err, accounts) => { + background.unlockHardwareWalletAccount(index, deviceName, (err, accounts) => { if (err) { log.error(err) dispatch(actions.displayWarning(err.message)) |