aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-21 03:40:16 +0800
committerGitHub <noreply@github.com>2018-03-21 03:40:16 +0800
commitfd3e240dd934c0938a57344a6ae09a213aaa8e37 (patch)
tree78be594fe96a2ed2d1adc814049487433543dd0c /ui/app/components
parent3ee6cad87b44949f80f5c01d9f89dd69a6e9f767 (diff)
parentdd19a934475cfa8cc31495b351b69a7d8d1f8d5e (diff)
downloadtangerine-wallet-browser-fd3e240dd934c0938a57344a6ae09a213aaa8e37.tar.gz
tangerine-wallet-browser-fd3e240dd934c0938a57344a6ae09a213aaa8e37.tar.zst
tangerine-wallet-browser-fd3e240dd934c0938a57344a6ae09a213aaa8e37.zip
Merge pull request #3635 from MetaMask/i3571-CompleteI18nTemplates
I3571 complete i18n templates
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/tx-list-item.js27
-rw-r--r--ui/app/components/tx-list.js2
2 files changed, 27 insertions, 2 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
+}
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index 08e37ebc8..037c7de8c 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -40,7 +40,7 @@ TxList.prototype.render = function () {
return h('div.flex-column', [
h('div.flex-row.tx-list-header-wrapper', [
h('div.flex-row.tx-list-header', [
- h('div', 'transactions'),
+ h('div', t('transactions')),
]),
]),
h('div.flex-column.tx-list-container', {}, [