diff --git a/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js b/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js index 8e3ee425d5..1337bfabda 100644 --- a/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js +++ b/products/ASC.People/Client/src/components/pages/Home/Section/Body/index.js @@ -9,7 +9,12 @@ import { EmptyScreenContainer, Icons, Link, - RowContainer + RowContainer, + ModalDialog, + Button, + Text, + Label, + TextInput } from "asc-web-components"; import UserContent from "./userContent"; import { @@ -28,8 +33,22 @@ import { isAdmin, isMe } from "../../../../../store/auth/selectors"; import { EmployeeStatus } from "../../../../../helpers/constants"; class SectionBodyContent extends React.PureComponent { - onEmailSentClick = () => { - toastr.success("Context action: Send e-mail"); + constructor(props) { + super(props); + + this.state = { + newEmail: null, + dialog: { + visible: false, + header: "", + body: "", + buttons: [] + } + }; + } + + onEmailSentClick = email => { + window.open("mailto:" + email); }; onSendMessageClick = () => { @@ -41,12 +60,89 @@ class SectionBodyContent extends React.PureComponent { history.push(`${settings.homepage}/edit/${user.userName}`); }; - onChangePasswordClick = () => { - toastr.success("Context action: Change password"); + onChangePasswordClick = email => { + this.setState({ + dialog: { + visible: true, + header: "Password change", + body: ( + + Send the password change instructions to the{" "} + + {email} + {" "} + email address + + ), + buttons: [ +