|
|
@@ -15,9 +15,11 @@ class InviteUserControl extends React.Component {
|
|
|
this.state = {
|
|
|
isUserInviteModalShown: false,
|
|
|
isConfirmationPassWordModalShown: false,
|
|
|
+ invitedEmailList: '',
|
|
|
};
|
|
|
|
|
|
this.toggleUserInviteModal = this.toggleUserInviteModal.bind(this);
|
|
|
+ this.showConfirmationPasswordModal = this.showConfirmationPasswordModal.bind(this);
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
@@ -27,6 +29,11 @@ class InviteUserControl extends React.Component {
|
|
|
this.setState({ isUserInviteModalShown: !this.state.isUserInviteModalShown });
|
|
|
}
|
|
|
|
|
|
+ showConfirmationPasswordModal(emailList) {
|
|
|
+ this.setState({ invitedEmailList: emailList });
|
|
|
+ this.setState({ isConfirmationPassWordModalShown: true });
|
|
|
+ }
|
|
|
+
|
|
|
render() {
|
|
|
const { t } = this.props;
|
|
|
|
|
|
@@ -38,9 +45,11 @@ class InviteUserControl extends React.Component {
|
|
|
<UserInviteModal
|
|
|
show={this.state.isUserInviteModalShown}
|
|
|
onToggleModal={this.toggleUserInviteModal}
|
|
|
+ showConfirmationPasswordModal={this.showConfirmationPasswordModal}
|
|
|
/>
|
|
|
<ConfirmationPasswordModal
|
|
|
show={this.state.isConfirmationPassWordModalShown}
|
|
|
+ invitedEmailList={this.state.invitedEmailList}
|
|
|
/>
|
|
|
</Fragment>
|
|
|
);
|