mirror of
https://github.com/wassname/talk.git
synced 2026-09-12 13:01:11 +08:00
Merge branch 'master' into wyattjoh-patch-1
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
import { compose, gql } from 'react-apollo';
|
||||
import { bindActionCreators } from 'redux';
|
||||
@@ -23,6 +24,14 @@ class AddEmailAddressDialog extends React.Component {
|
||||
|
||||
componentDidMount() {
|
||||
this.props.startAttach();
|
||||
document.body.style.minHeight = `${
|
||||
document.getElementById('talk-plugin-local-auth-email-dialog')
|
||||
.clientHeight
|
||||
}px`;
|
||||
}
|
||||
|
||||
componentWillUnmount() {
|
||||
document.body.style.removeProperty('min-height');
|
||||
}
|
||||
|
||||
handleDone = () => {
|
||||
@@ -63,7 +72,7 @@ class AddEmailAddressDialog extends React.Component {
|
||||
} = this.props;
|
||||
|
||||
return (
|
||||
<Dialog open={true}>
|
||||
<Dialog open={true} id="talk-plugin-local-auth-email-dialog">
|
||||
{step === 0 && <AddEmailForm onSubmit={this.handleSubmit} />}
|
||||
{step === 1 &&
|
||||
!requireEmailConfirmation && (
|
||||
|
||||
Reference in New Issue
Block a user