mirror of
https://github.com/Telecominfraproject/wlan-sdk-mobile-app.git
synced 2025-11-02 03:37:47 +00:00
Forced Reset Password base functionality, disabled buttons in Forgot Password when loading
This commit is contained in:
@@ -17,6 +17,9 @@ export default class ForgotPassword extends Component {
|
||||
<View style={pageItemStyle.container}>
|
||||
<Text>Forgot Password</Text>
|
||||
</View>
|
||||
<View style={pageItemStyle.container}>
|
||||
<ActivityIndicator size="large" animating={this.state.loading} />
|
||||
</View>
|
||||
<View style={pageItemStyle.container}>
|
||||
<TextInput
|
||||
style={pageItemStyle.inputText}
|
||||
@@ -31,19 +34,15 @@ export default class ForgotPassword extends Component {
|
||||
onSubmitEditing={() => {this.state.email && this.onSubmit}}
|
||||
/>
|
||||
</View>
|
||||
<View style={pageItemStyle.container}>
|
||||
<ActivityIndicator size="large" animating={this.state.loading} />
|
||||
</View>
|
||||
{this.state.loading ||
|
||||
<View style={pageItemStyle.containerButton}>
|
||||
<Button title={strings.buttons.sendEmail}
|
||||
onPress={this.onSubmit}
|
||||
disabled={!this.state.email}
|
||||
/>
|
||||
disabled={this.state.loading || !this.state.email} />
|
||||
</View>
|
||||
}
|
||||
<View style={pageItemStyle.containerButton}>
|
||||
<Button title={strings.buttons.signIn} onPress={this.backToSignin} />
|
||||
<Button title={strings.buttons.signIn}
|
||||
onPress={this.backToSignin}
|
||||
disabled={this.state.loading} />
|
||||
</View>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user