aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/transaction-manager.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2017-03-29 05:39:29 +0800
committerkumavis <aaron@kumavis.me>2017-03-29 05:39:29 +0800
commit6310a05daeb6a4934de6976a6a9a38be85044aa0 (patch)
treec9a9bb7f9afd63b518bd3c4731ca0056b146eda4 /app/scripts/transaction-manager.js
parent0d20b548544c284fb6338dc55cf0c864f3a08b14 (diff)
downloadtangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.tar
tangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.tar.gz
tangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.tar.bz2
tangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.tar.lz
tangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.tar.xz
tangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.tar.zst
tangerine-wallet-browser-6310a05daeb6a4934de6976a6a9a38be85044aa0.zip
tx manager - emit update on new unapproved tx
Diffstat (limited to 'app/scripts/transaction-manager.js')
-rw-r--r--app/scripts/transaction-manager.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/scripts/transaction-manager.js b/app/scripts/transaction-manager.js
index 690d44808..a70159680 100644
--- a/app/scripts/transaction-manager.js
+++ b/app/scripts/transaction-manager.js
@@ -79,8 +79,9 @@ module.exports = class TransactionManager extends EventEmitter {
fullTxList.splice(index, 1)
}
fullTxList.push(txMeta)
-
this._saveTxList(fullTxList)
+ this.emit('update')
+
this.once(`${txMeta.id}:signed`, function (txId) {
this.removeAllListeners(`${txMeta.id}:rejected`)
})