diff options
author | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-09-20 08:48:28 +0800 |
---|---|---|
committer | Whymarrh Whitby <whymarrh.whitby@gmail.com> | 2018-10-02 00:14:54 +0800 |
commit | 0fa9299cd150ff81095da76352a55da4909bf812 (patch) | |
tree | fe467aadc869d2320a2c4497dc29bc2d087aa967 /ui/app/components/confirm-page-container | |
parent | 2e5a09e28c07b2b3865d3eb0112d8705e99f572d (diff) | |
download | tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.tar tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.tar.gz tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.tar.bz2 tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.tar.lz tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.tar.xz tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.tar.zst tangerine-wallet-browser-0fa9299cd150ff81095da76352a55da4909bf812.zip |
Add "Cancel All" button to confirm footer
Diffstat (limited to 'ui/app/components/confirm-page-container')
-rw-r--r-- | ui/app/components/confirm-page-container/confirm-page-container.component.js | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/ui/app/components/confirm-page-container/confirm-page-container.component.js b/ui/app/components/confirm-page-container/confirm-page-container.component.js index b1582051e..00100b5af 100644 --- a/ui/app/components/confirm-page-container/confirm-page-container.component.js +++ b/ui/app/components/confirm-page-container/confirm-page-container.component.js @@ -41,7 +41,9 @@ export default class ConfirmPageContainer extends Component { assetImage: PropTypes.string, summaryComponent: PropTypes.node, warning: PropTypes.string, + unapprovedTxCount: PropTypes.number, // Footer + onCancelAll: PropTypes.func, onCancel: PropTypes.func, onSubmit: PropTypes.func, disabled: PropTypes.bool, @@ -67,10 +69,12 @@ export default class ConfirmPageContainer extends Component { summaryComponent, detailsComponent, dataComponent, + onCancelAll, onCancel, onSubmit, identiconAddress, nonce, + unapprovedTxCount, assetImage, warning, } = this.props @@ -116,7 +120,13 @@ export default class ConfirmPageContainer extends Component { submitText={this.context.t('confirm')} submitButtonType="confirm" disabled={disabled} - /> + > + {unapprovedTxCount > 1 && ( + <a onClick={() => onCancelAll()}> + {this.context.t('cancelN', [unapprovedTxCount])} + </a> + )} + </PageContainerFooter> </div> ) } |