From d75af2980a0ac15be03b1a373ddfab5364c0507f Mon Sep 17 00:00:00 2001 From: Alexey Safronov Date: Fri, 30 Aug 2019 17:55:17 +0300 Subject: [PATCH] web: People: Moved buttons for Dialog to state --- .../pages/Home/Section/Body/index.js | 204 +++++++++++------- 1 file changed, 128 insertions(+), 76 deletions(-) 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 ae5ea85d51..ee9de6eea9 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 @@ -39,7 +39,7 @@ class SectionBodyContent extends React.PureComponent { visible: false, header: "", body: "", - successFunc: null + buttons: [] } }; } @@ -58,17 +58,39 @@ class SectionBodyContent extends React.PureComponent { }; onChangePasswordClick = email => { - this.setState({dialog: { + this.setState({ + dialog: { visible: true, header: "Password change", - body: - Send the password change instructions to the {email} email address - , - successFunc: () => { - toastr.success("Context action: Change password"); - this.onDialogClose(); - } - }}); + body: ( + + Send the password change instructions to the{" "} + + {email} + {" "} + email address + + ), + buttons: [ +