Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH 1960 & GH-2028 ForgotPassword Hub Error Message and Loading Icon Fix #533

Merged
merged 4 commits into from Apr 26, 2020
Merged
Changes from 1 commit
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

Add error toast message in hub and minor style changes
  • Loading branch information
benstrumeyer committed Apr 24, 2020
commit 1908c12bb21bb061f5756c9b1789da03162e343f
@@ -29,6 +29,7 @@ import {
GET_USER_SUBSCRIPTION_DATA_FAIL,
GET_USER_SUBSCRIPTION_DATA_SUCCESS
} from './AccountConstants';
import { SET_TOAST } from '../hub/Views/AppView/AppViewConstants';

export const getUserSettings = () => dispatch => (
sendMessageInPromise('account.getUserSettings')
@@ -170,10 +171,19 @@ export const resetPassword = email => dispatch => (
.then((res) => {
const { errors } = res;
if (errors) {
// Panel toast message
dispatch({
type: RESET_PASSWORD_FAIL,
payload: { errors },
});
// Hub toast message
dispatch({
type: SET_TOAST,
data: {
toastMessage: t('banner_email_not_in_system_message'),
toastClass: 'alert',
},
});
return false;
}
dispatch({ type: RESET_PASSWORD_SUCCESS });
@@ -31,10 +31,9 @@

/* FORGOT PASSWORD HUB */
#ForgotPasswordView {
margin: 40px auto;
padding-bottom: 40px;
margin: 70px 0 70px 182px;
#forgot-email {
margin-top: 40px;
margin: 25px auto;
}
#ForgotPasswordMessage {
width: 456px;
ProTip! Use n and p to navigate between commits in a pull request.