tx manager - emit update on new unapproved tx

feature/default_network_editable
kumavis 8 years ago
parent 0d20b54854
commit 6310a05dae
  1. 3
      app/scripts/transaction-manager.js

@ -79,8 +79,9 @@ module.exports = class TransactionManager extends EventEmitter {
fullTxList.splice(index, 1) fullTxList.splice(index, 1)
} }
fullTxList.push(txMeta) fullTxList.push(txMeta)
this._saveTxList(fullTxList) this._saveTxList(fullTxList)
this.emit('update')
this.once(`${txMeta.id}:signed`, function (txId) { this.once(`${txMeta.id}:signed`, function (txId) {
this.removeAllListeners(`${txMeta.id}:rejected`) this.removeAllListeners(`${txMeta.id}:rejected`)
}) })

Loading…
Cancel
Save