diff --git a/ui/pages/routes/routes.component.js b/ui/pages/routes/routes.component.js index 02ebdedf6..7f5565d9a 100644 --- a/ui/pages/routes/routes.component.js +++ b/ui/pages/routes/routes.component.js @@ -69,6 +69,7 @@ import { getEnvironmentType } from '../../../app/scripts/lib/util'; import ConfirmationPage from '../confirmation'; import OnboardingFlow from '../onboarding-flow/onboarding-flow'; import QRHardwarePopover from '../../components/app/qr-hardware-popover'; +import { SEND_STAGES } from '../../ducks/send'; export default class Routes extends Component { static propTypes = { @@ -95,6 +96,7 @@ export default class Routes extends Component { browserEnvironmentOs: PropTypes.string, browserEnvironmentBrowser: PropTypes.string, theme: PropTypes.string, + sendStage: PropTypes.string, }; static contextTypes = { @@ -242,6 +244,10 @@ export default class Routes extends Component { ); } + onEditTransactionPage() { + return this.props.sendStage === SEND_STAGES.EDIT; + } + onSwapsPage() { const { location } = this.props; return Boolean( @@ -359,6 +365,7 @@ export default class Routes extends Component { onClick={this.onAppHeaderClick} disabled={ this.onConfirmPage() || + this.onEditTransactionPage() || (this.onSwapsPage() && !this.onSwapsBuildQuotePage()) } /> diff --git a/ui/pages/routes/routes.container.js b/ui/pages/routes/routes.container.js index 168b3e213..4be9745ac 100644 --- a/ui/pages/routes/routes.container.js +++ b/ui/pages/routes/routes.container.js @@ -15,6 +15,7 @@ import { } from '../../store/actions'; import { pageChanged } from '../../ducks/history/history'; import { prepareToLeaveSwaps } from '../../ducks/swaps/swaps'; +import { getSendStage } from '../../ducks/send'; import Routes from './routes.component'; function mapStateToProps(state) { @@ -38,6 +39,7 @@ function mapStateToProps(state) { providerId: getNetworkIdentifier(state), providerType: state.metamask.provider?.type, theme: getTheme(state), + sendStage: getSendStage(state), }; }