review updates

This commit is contained in:
Wyatt Johnson
2018-05-11 09:33:18 -06:00
parent ac7bea209e
commit 42d4abf842
5 changed files with 8 additions and 5 deletions
@@ -1,7 +1,7 @@
import * as actions from './constants';
export const startAttach = () => ({
type: actions.STARTED_ATTACH,
type: actions.START_ATTACH,
});
export const finishAttach = () => ({
@@ -124,8 +124,10 @@ class AddEmailAddressDialog extends React.Component {
password: confirmPassword,
});
// TODO: translate
this.props.notify('success', 'Email Added!');
this.props.notify(
'success',
t('talk-plugin-local-auth.add_email.added.alert')
);
this.goToNextStep();
} catch (err) {
this.props.notify('error', getErrorMessages(err));
@@ -1,4 +1,4 @@
const prefix = 'TALK_LOCAL_AUTH';
export const STARTED_ATTACH = `${prefix}_STARTED_ATTACH`;
export const START_ATTACH = `${prefix}_START_ATTACH`;
export const FINISH_ATTACH = `${prefix}_FINISH_ATTACH`;
@@ -6,7 +6,7 @@ const initialState = {
export default function reducer(state = initialState, action) {
switch (action.type) {
case actions.STARTED_ATTACH:
case actions.START_ATTACH:
return {
inProgress: true,
};
@@ -67,6 +67,7 @@ en:
subtitle: "Need to change your email address?"
description_2: "You can change your account settings by visiting"
path: "My Profile > Settings"
alert: "Email Added!"
es:
talk-plugin-local-auth:
change_password: