diff options
author | kumavis <aaron@kumavis.me> | 2016-06-24 06:25:33 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2016-06-24 06:25:33 +0800 |
commit | cc7dbace38bc41bb177738586e9a60adf541d2ab (patch) | |
tree | 4cb2671dc8f961cc6bb951a9fa30a91a0c65d1e1 /ui/app/components | |
parent | 2495c6ea547123c9d807b4662a3e0e7e679eab5f (diff) | |
download | tangerine-wallet-browser-cc7dbace38bc41bb177738586e9a60adf541d2ab.tar.gz tangerine-wallet-browser-cc7dbace38bc41bb177738586e9a60adf541d2ab.tar.zst tangerine-wallet-browser-cc7dbace38bc41bb177738586e9a60adf541d2ab.zip |
tx-conf add non-interactive mode for notification
Diffstat (limited to 'ui/app/components')
-rw-r--r-- | ui/app/components/panel.js | 6 | ||||
-rw-r--r-- | ui/app/components/pending-tx.js | 25 |
2 files changed, 20 insertions, 11 deletions
diff --git a/ui/app/components/panel.js b/ui/app/components/panel.js index cbdc82982..3efd3c661 100644 --- a/ui/app/components/panel.js +++ b/ui/app/components/panel.js @@ -27,9 +27,9 @@ Panel.prototype.render = function () { // account identicon h('.identicon-wrapper.flex-column.select-none', [ - h(Identicon, { - address: state.identiconKey, - }), + // h(Identicon, { + // address: state.identiconKey, + // }), h('span.font-small', state.identiconLabel), ]), diff --git a/ui/app/components/pending-tx.js b/ui/app/components/pending-tx.js index d3bfbbc62..e63eba700 100644 --- a/ui/app/components/pending-tx.js +++ b/ui/app/components/pending-tx.js @@ -67,16 +67,25 @@ PendingTx.prototype.renderGeneric = function (h, state) { ]), // send + cancel - h('.flex-row.flex-space-around', [ - h('button', { - onClick: state.cancelTransaction, - }, 'Cancel'), - h('button', { - onClick: state.sendTransaction, - }, 'Send'), - ]), + state.nonInteractive ? null : actionButtons(state), + ]) ) + } +function actionButtons(state){ + return ( + + h('.flex-row.flex-space-around', [ + h('button', { + onClick: state.cancelTransaction, + }, 'Cancel'), + h('button', { + onClick: state.sendTransaction, + }, 'Send'), + ]) + + ) +}
\ No newline at end of file |