aboutsummaryrefslogtreecommitdiffstats
path: root/app/scripts/lib
diff options
context:
space:
mode:
authorfrankiebee <frankie.diamond@gmail.com>2018-03-14 00:51:37 +0800
committerfrankiebee <frankie.diamond@gmail.com>2018-03-14 00:51:37 +0800
commit9fd349d7407d7c33deb317942f7e2835585767c9 (patch)
treea12bfc8a5606b7b030d1f8ede82d0b4b8ec1fae3 /app/scripts/lib
parent179066fe6ba3eca002454981c5ef56df7bb142ab (diff)
downloadtangerine-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/scripts/lib')
-rw-r--r--app/scripts/lib/tx-state-manager.js4
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')
}