diff options
author | kumavis <kumavis@users.noreply.github.com> | 2016-08-26 06:46:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-26 06:46:44 +0800 |
commit | 78f73038e789f4483f728a7cc9ea1c68b0b3d7fa (patch) | |
tree | a838945b8518079e0e1022bb176a544d11a2ab50 /ui/app/conf-tx.js | |
parent | b6b57d928a8854baf674763211c407bb4c976dba (diff) | |
parent | 8b81009a307eaf5384a2ab364a717f5188b3c501 (diff) | |
download | tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.tar tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.tar.gz tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.tar.bz2 tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.tar.lz tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.tar.xz tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.tar.zst tangerine-wallet-browser-78f73038e789f4483f728a7cc9ea1c68b0b3d7fa.zip |
Merge pull request #554 from MetaMask/PopupNotifications
Replace chrome notifications with windows.create
Diffstat (limited to 'ui/app/conf-tx.js')
-rw-r--r-- | ui/app/conf-tx.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/app/conf-tx.js b/ui/app/conf-tx.js index 43604e8cf..22d29383f 100644 --- a/ui/app/conf-tx.js +++ b/ui/app/conf-tx.js @@ -5,6 +5,7 @@ const h = require('react-hyperscript') const connect = require('react-redux').connect const actions = require('./actions') const txHelper = require('../lib/tx-helper') +const isPopupOrNotification = require('../../app/scripts/lib/is-popup-or-notification') const PendingTx = require('./components/pending-tx') const PendingMsg = require('./components/pending-msg') @@ -36,6 +37,7 @@ ConfirmTxScreen.prototype.render = function () { var unconfTxList = txHelper(unconfTxs, unconfMsgs) var index = state.index !== undefined ? state.index : 0 var txData = unconfTxList[index] || unconfTxList[0] || {} + var isNotification = isPopupOrNotification() === 'notification' return ( @@ -43,9 +45,9 @@ ConfirmTxScreen.prototype.render = function () { // subtitle and nav h('.section-title.flex-row.flex-center', [ - h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', { + !isNotification ? h('i.fa.fa-arrow-left.fa-lg.cursor-pointer', { onClick: this.goHome.bind(this), - }), + }) : null, h('h2.page-subtitle', 'Confirm Transaction'), ]), |