aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-03-21 03:06:59 +0800
committerThomas <tmashuang@gmail.com>2018-03-21 03:06:59 +0800
commitdd19a934475cfa8cc31495b351b69a7d8d1f8d5e (patch)
treea31b81bd0c0d4b2b527f9dc4de4264332f52a48a /ui
parentd4eb883958e7c13029726484e61d1db01b77d0ff (diff)
downloadtangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.tar
tangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.tar.gz
tangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.tar.bz2
tangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.tar.lz
tangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.tar.xz
tangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.tar.zst
tangerine-wallet-browser-dd19a934475cfa8cc31495b351b69a7d8d1f8d5e.zip
Add i18n to tx status
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/tx-list-item.js27
1 files changed, 26 insertions, 1 deletions
diff --git a/ui/app/components/tx-list-item.js b/ui/app/components/tx-list-item.js
index 5ff1820a6..d104eda88 100644
--- a/ui/app/components/tx-list-item.js
+++ b/ui/app/components/tx-list-item.js
@@ -265,7 +265,7 @@ TxListItem.prototype.render = function () {
'tx-list-status--dropped': transactionStatus === 'dropped',
}),
},
- transactionStatus,
+ this.txStatusIndicator(),
),
]),
]),
@@ -300,3 +300,28 @@ TxListItem.prototype.render = function () {
]), // holding on icon from design
])
}
+
+TxListItem.prototype.txStatusIndicator = function () {
+ const { transactionStatus } = this.props
+
+ let name
+
+ if (transactionStatus === 'unapproved') {
+ name = t('unapproved')
+ } else if (transactionStatus === 'rejected') {
+ name = t('rejected')
+ } else if (transactionStatus === 'approved') {
+ name = t('approved')
+ } else if (transactionStatus === 'signed') {
+ name = t('signed')
+ } else if (transactionStatus === 'submitted') {
+ name = t('submitted')
+ } else if (transactionStatus === 'confirmed') {
+ name = t('confirmed')
+ } else if (transactionStatus === 'failed') {
+ name = t('failed')
+ } else if (transactionStatus === 'dropped') {
+ name = t('dropped')
+ }
+ return name
+}