From a2123117d46eb068038c15687e508fd8ae0c7b7d Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Fri, 24 Feb 2017 00:07:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D1=81=D1=81=D1=8B=D0=BB=D0=BA=D0=B0=20"?= =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=20=D0=BE=D0=B1=D1=80=D0=B0=D1=82?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9=20=D1=81=D0=B2=D1=8F=D0=B7=D0=B8"=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B4=20=D1=84=D0=BE=D1=80=D0=BC=D0=BE=D0=B9=20=D0=B2?= =?UTF-8?q?=D0=BE=D1=81=D1=81=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B0=D1=80=D0=BE=D0=BB=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/auth/actions.js | 6 ++++++ src/services/authFlow/RecoverPasswordState.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/auth/actions.js b/src/components/auth/actions.js index d87552c..58f78bb 100644 --- a/src/components/auth/actions.js +++ b/src/components/auth/actions.js @@ -9,6 +9,8 @@ import authentication from 'services/api/authentication'; import oauth from 'services/api/oauth'; import signup from 'services/api/signup'; import dispatchBsod from 'components/ui/bsod/dispatchBsod'; +import { create as createPopup } from 'components/ui/popup/actions'; +import ContactForm from 'components/contact/ContactForm'; export { updateUser } from 'components/user/actions'; export { authenticate, logoutAll as logout } from 'components/accounts/actions'; @@ -150,6 +152,10 @@ export function resendActivation({email = '', captcha}) { ); } +export function contactUs() { + return createPopup(ContactForm); +} + export const SET_LOGIN = 'auth:setLogin'; export function setLogin(login) { return { diff --git a/src/services/authFlow/RecoverPasswordState.js b/src/services/authFlow/RecoverPasswordState.js index f4cdac1..a63d67e 100644 --- a/src/services/authFlow/RecoverPasswordState.js +++ b/src/services/authFlow/RecoverPasswordState.js @@ -29,6 +29,6 @@ export default class RecoverPasswordState extends AbstractState { } reject(context) { - context.navigate('/send-message'); + context.run('contactUs'); } }