diff options
author | frankiebee <frankie.diamond@gmail.com> | 2018-03-14 00:51:37 +0800 |
---|---|---|
committer | frankiebee <frankie.diamond@gmail.com> | 2018-03-14 00:51:37 +0800 |
commit | 9fd349d7407d7c33deb317942f7e2835585767c9 (patch) | |
tree | a12bfc8a5606b7b030d1f8ede82d0b4b8ec1fae3 /app | |
parent | 179066fe6ba3eca002454981c5ef56df7bb142ab (diff) | |
download | tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.tar tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.tar.gz tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.tar.bz2 tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.tar.lz tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.tar.xz tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.tar.zst tangerine-wallet-browser-9fd349d7407d7c33deb317942f7e2835585767c9.zip |
transactions:state - add a submittedTime stamp so the ui has a better grasp of the time of submission
Diffstat (limited to 'app')
-rw-r--r-- | app/scripts/lib/tx-state-manager.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/scripts/lib/tx-state-manager.js b/app/scripts/lib/tx-state-manager.js index e75f733aa..ad07c813f 100644 --- a/app/scripts/lib/tx-state-manager.js +++ b/app/scripts/lib/tx-state-manager.js @@ -214,7 +214,11 @@ module.exports = class TransactionStateManager extends EventEmitter { } // should update the status of the tx to 'submitted'. + // and add a time stamp for when it was called setTxStatusSubmitted (txId) { + const txMeta = this.getTx(txId) + txMeta.submittedTime = (new Date()).getTime() + this.updateTx(txMeta, 'txStateManager - add submitted time stamp') this._setTxStatus(txId, 'submitted') } |