Merge pull request #3894 from danjm/i3696-disablefirsttimeimportloading

Disable the first time flow import button while isLoading is true.
This commit is contained in:
kumavis 2018-04-10 02:05:51 -07:00 committed by GitHub
commit 224e6e1696
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -76,8 +76,9 @@ class ImportSeedPhraseScreen extends Component {
render () {
const { seedPhrase, password, confirmPassword } = this.state
const { warning } = this.props
const importDisabled = warning || !seedPhrase || !password || !confirmPassword
const { warning, isLoading } = this.props
const importDisabled = warning || !seedPhrase || !password || !confirmPassword || isLoading
return (
<div className="first-view-main-wrapper">
<div className="first-view-main">
@ -152,7 +153,7 @@ class ImportSeedPhraseScreen extends Component {
}
export default connect(
({ appState: { warning } }) => ({ warning }),
({ appState: { warning, isLoading } }) => ({ warning, isLoading }),
dispatch => ({
leaveImportSeedScreenState: () => {
dispatch(unMarkPasswordForgotten())