diff options
author | Dan Finlay <dan@danfinlay.com> | 2017-09-14 02:39:39 +0800 |
---|---|---|
committer | Dan Finlay <dan@danfinlay.com> | 2017-09-14 02:39:39 +0800 |
commit | e4d7fb244790d547b03d18763aa1d8e501d88b89 (patch) | |
tree | 4aadc6771aef9f6ca634a11bc6c4c4aca0690b7e | |
parent | 53a467cd1e2ab50168b06d36a98effcfd3db3a49 (diff) | |
download | tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.tar tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.tar.gz tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.tar.bz2 tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.tar.lz tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.tar.xz tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.tar.zst tangerine-wallet-browser-e4d7fb244790d547b03d18763aa1d8e501d88b89.zip |
Add state-labeled events to allow subscribing to any transaction's state change
-rw-r--r-- | app/scripts/controllers/transactions.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/scripts/controllers/transactions.js b/app/scripts/controllers/transactions.js index fb3be6073..59a3f5329 100644 --- a/app/scripts/controllers/transactions.js +++ b/app/scripts/controllers/transactions.js @@ -434,6 +434,7 @@ module.exports = class TransactionController extends EventEmitter { const txMeta = this.getTx(txId) txMeta.status = status this.emit(`${txMeta.id}:${status}`, txId) + this.emit(`${status}`, txId) if (status === 'submitted' || status === 'rejected') { this.emit(`${txMeta.id}:finished`, txMeta) } |