|
|
@ -22,6 +22,8 @@ const { |
|
|
|
conversionRateSelector, |
|
|
|
conversionRateSelector, |
|
|
|
} = require('../selectors.js') |
|
|
|
} = require('../selectors.js') |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { clearConfirmTransaction } from '../ducks/confirm-transaction.duck' |
|
|
|
|
|
|
|
|
|
|
|
const { DEFAULT_ROUTE } = require('../routes') |
|
|
|
const { DEFAULT_ROUTE } = require('../routes') |
|
|
|
|
|
|
|
|
|
|
|
function mapStateToProps (state) { |
|
|
|
function mapStateToProps (state) { |
|
|
@ -39,6 +41,7 @@ function mapStateToProps (state) { |
|
|
|
function mapDispatchToProps (dispatch) { |
|
|
|
function mapDispatchToProps (dispatch) { |
|
|
|
return { |
|
|
|
return { |
|
|
|
goHome: () => dispatch(actions.goHome()), |
|
|
|
goHome: () => dispatch(actions.goHome()), |
|
|
|
|
|
|
|
clearConfirmTransaction: () => dispatch(clearConfirmTransaction()), |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -247,12 +250,18 @@ SignatureRequest.prototype.renderFooter = function () { |
|
|
|
return h('div.request-signature__footer', [ |
|
|
|
return h('div.request-signature__footer', [ |
|
|
|
h('button.btn-default.btn--large.request-signature__footer__cancel-button', { |
|
|
|
h('button.btn-default.btn--large.request-signature__footer__cancel-button', { |
|
|
|
onClick: event => { |
|
|
|
onClick: event => { |
|
|
|
cancel(event).then(() => this.props.history.push(DEFAULT_ROUTE)) |
|
|
|
cancel(event).then(() => { |
|
|
|
|
|
|
|
this.props.clearConfirmTransaction() |
|
|
|
|
|
|
|
this.props.history.push(DEFAULT_ROUTE) |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, this.context.t('cancel')), |
|
|
|
}, this.context.t('cancel')), |
|
|
|
h('button.btn-primary.btn--large', { |
|
|
|
h('button.btn-primary.btn--large', { |
|
|
|
onClick: event => { |
|
|
|
onClick: event => { |
|
|
|
sign(event).then(() => this.props.history.push(DEFAULT_ROUTE)) |
|
|
|
sign(event).then(() => { |
|
|
|
|
|
|
|
this.props.clearConfirmTransaction() |
|
|
|
|
|
|
|
this.props.history.push(DEFAULT_ROUTE) |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
}, this.context.t('sign')), |
|
|
|
}, this.context.t('sign')), |
|
|
|
]) |
|
|
|
]) |
|
|
|