|
@@ -3,7 +3,7 @@ import React from 'react';
|
|
|
import { useTranslation } from 'next-i18next';
|
|
import { useTranslation } from 'next-i18next';
|
|
|
import PropTypes from 'prop-types';
|
|
import PropTypes from 'prop-types';
|
|
|
import {
|
|
import {
|
|
|
- Modal, ModalHeader, ModalBody, ModalFooter, Collapse,
|
|
|
|
|
|
|
+ Modal, ModalHeader, ModalBody, ModalFooter,
|
|
|
} from 'reactstrap';
|
|
} from 'reactstrap';
|
|
|
|
|
|
|
|
import AdminUsersContainer from '~/client/services/AdminUsersContainer';
|
|
import AdminUsersContainer from '~/client/services/AdminUsersContainer';
|
|
@@ -22,12 +22,10 @@ class PasswordResetModal extends React.Component {
|
|
|
isPasswordResetDone: false,
|
|
isPasswordResetDone: false,
|
|
|
sendEmail: false,
|
|
sendEmail: false,
|
|
|
isCreateUserButtonPushed: false,
|
|
isCreateUserButtonPushed: false,
|
|
|
- collapse: false,
|
|
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
this.resetPassword = this.resetPassword.bind(this);
|
|
this.resetPassword = this.resetPassword.bind(this);
|
|
|
this.onClickSendNewPasswordButton = this.onClickSendNewPasswordButton.bind(this);
|
|
this.onClickSendNewPasswordButton = this.onClickSendNewPasswordButton.bind(this);
|
|
|
- this.toggle = this.toggle.bind(this);
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async resetPassword() {
|
|
async resetPassword() {
|
|
@@ -42,10 +40,6 @@ class PasswordResetModal extends React.Component {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- toggle() {
|
|
|
|
|
- this.setState({ collapse: !this.state.collapse });
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
renderModalBodyBeforeReset() {
|
|
renderModalBodyBeforeReset() {
|
|
|
const { t, userForPasswordResetModal } = this.props;
|
|
const { t, userForPasswordResetModal } = this.props;
|
|
|
|
|
|