mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 00:35:56 +08:00
review updates
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user