@ -6,6 +6,7 @@ import {
setGasLimit ,
setGasLimit ,
setGasPrice ,
setGasPrice ,
createSpeedUpTransaction ,
createSpeedUpTransaction ,
createRetryTransaction ,
hideSidebar ,
hideSidebar ,
updateSendAmount ,
updateSendAmount ,
setGasTotal ,
setGasTotal ,
@ -153,6 +154,7 @@ const mapStateToProps = (state, ownProps) => {
} ,
} ,
transaction : txData || transaction ,
transaction : txData || transaction ,
isSpeedUp : transaction . status === 'submitted' ,
isSpeedUp : transaction . status === 'submitted' ,
isRetry : transaction . status === 'failed' ,
txId : transaction . id ,
txId : transaction . id ,
insufficientBalance ,
insufficientBalance ,
gasEstimatesLoading ,
gasEstimatesLoading ,
@ -187,6 +189,9 @@ const mapDispatchToProps = dispatch => {
createSpeedUpTransaction : ( txId , gasPrice ) => {
createSpeedUpTransaction : ( txId , gasPrice ) => {
return dispatch ( createSpeedUpTransaction ( txId , gasPrice ) )
return dispatch ( createSpeedUpTransaction ( txId , gasPrice ) )
} ,
} ,
createRetryTransaction : ( txId , gasPrice ) => {
return dispatch ( createRetryTransaction ( txId , gasPrice ) )
} ,
hideGasButtonGroup : ( ) => dispatch ( hideGasButtonGroup ( ) ) ,
hideGasButtonGroup : ( ) => dispatch ( hideGasButtonGroup ( ) ) ,
setCustomTimeEstimate : ( timeEstimateInSeconds ) => dispatch ( setCustomTimeEstimate ( timeEstimateInSeconds ) ) ,
setCustomTimeEstimate : ( timeEstimateInSeconds ) => dispatch ( setCustomTimeEstimate ( timeEstimateInSeconds ) ) ,
hideSidebar : ( ) => dispatch ( hideSidebar ( ) ) ,
hideSidebar : ( ) => dispatch ( hideSidebar ( ) ) ,
@ -206,6 +211,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
isConfirm ,
isConfirm ,
txId ,
txId ,
isSpeedUp ,
isSpeedUp ,
isRetry ,
insufficientBalance ,
insufficientBalance ,
maxModeOn ,
maxModeOn ,
customGasPrice ,
customGasPrice ,
@ -221,6 +227,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
setGasData : dispatchSetGasData ,
setGasData : dispatchSetGasData ,
updateConfirmTxGasAndCalculate : dispatchUpdateConfirmTxGasAndCalculate ,
updateConfirmTxGasAndCalculate : dispatchUpdateConfirmTxGasAndCalculate ,
createSpeedUpTransaction : dispatchCreateSpeedUpTransaction ,
createSpeedUpTransaction : dispatchCreateSpeedUpTransaction ,
createRetryTransaction : dispatchCreateRetryTransaction ,
hideSidebar : dispatchHideSidebar ,
hideSidebar : dispatchHideSidebar ,
cancelAndClose : dispatchCancelAndClose ,
cancelAndClose : dispatchCancelAndClose ,
hideModal : dispatchHideModal ,
hideModal : dispatchHideModal ,
@ -248,6 +255,10 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
dispatchCreateSpeedUpTransaction ( txId , gasPrice )
dispatchCreateSpeedUpTransaction ( txId , gasPrice )
dispatchHideSidebar ( )
dispatchHideSidebar ( )
dispatchCancelAndClose ( )
dispatchCancelAndClose ( )
} else if ( isRetry ) {
dispatchCreateRetryTransaction ( txId , gasPrice )
dispatchHideSidebar ( )
dispatchCancelAndClose ( )
} else {
} else {
dispatchSetGasData ( gasLimit , gasPrice )
dispatchSetGasData ( gasLimit , gasPrice )
dispatchHideGasButtonGroup ( )
dispatchHideGasButtonGroup ( )
@ -268,7 +279,7 @@ const mergeProps = (stateProps, dispatchProps, ownProps) => {
} ,
} ,
cancelAndClose : ( ) => {
cancelAndClose : ( ) => {
dispatchCancelAndClose ( )
dispatchCancelAndClose ( )
if ( isSpeedUp ) {
if ( isSpeedUp || isRetry ) {
dispatchHideSidebar ( )
dispatchHideSidebar ( )
}
}
} ,
} ,