ASC.People: ProfileAction: Fixed translations
This commit is contained in:
parent
6f969da694
commit
ff5de59b3e
@ -64,7 +64,7 @@ class CreateUserForm extends React.Component {
|
||||
tmpFile: this.state.avatar.tmpFile
|
||||
})
|
||||
.then(() => {
|
||||
toastr.success("Success");
|
||||
toastr.success(this.props.t("ChangesSavedSuccessfully"));
|
||||
this.props.history.push(`${this.props.settings.homepage}/view/${userName}`);
|
||||
})
|
||||
.catch((error) => toastr.error(error));
|
||||
@ -228,7 +228,7 @@ class CreateUserForm extends React.Component {
|
||||
if(this.state.avatar.tmpFile !== ""){
|
||||
this.createAvatar(profile.id,profile.userName);
|
||||
}else{
|
||||
toastr.success("Success");
|
||||
toastr.success(this.props.t("ChangesSavedSuccessfully"));
|
||||
this.props.history.push(`${this.props.settings.homepage}/view/${profile.userName}`);
|
||||
}
|
||||
})
|
||||
|
@ -188,7 +188,7 @@ class UpdateUserForm extends React.Component {
|
||||
|
||||
this.props.updateProfile(this.state.profile)
|
||||
.then((profile) => {
|
||||
toastr.success("Success");
|
||||
toastr.success(this.props.t("ChangesSavedSuccessfully"));
|
||||
this.props.history.push(`${this.props.settings.homepage}/view/${profile.userName}`);
|
||||
})
|
||||
.catch((error) => {
|
||||
@ -404,7 +404,7 @@ class UpdateUserForm extends React.Component {
|
||||
stateCopy.visibleAvatarEditor = false;
|
||||
stateCopy.avatar.tmpFile = '';
|
||||
stateCopy.profile.avatarMax = response.max + '?_='+Math.floor(Math.random() * Math.floor(10000));
|
||||
toastr.success("Success");
|
||||
toastr.success(this.props.t("ChangesSavedSuccessfully"));
|
||||
this.setState(stateCopy);
|
||||
})
|
||||
.catch((error) => toastr.error(error));
|
||||
@ -414,7 +414,7 @@ class UpdateUserForm extends React.Component {
|
||||
let stateCopy = Object.assign({}, this.state);
|
||||
stateCopy.visibleAvatarEditor = false;
|
||||
stateCopy.profile.avatarMax = response.big;
|
||||
toastr.success("Success");
|
||||
toastr.success(this.props.t("ChangesSavedSuccessfully"));
|
||||
this.setState(stateCopy);
|
||||
})
|
||||
.catch((error) => toastr.error(error));
|
||||
|
@ -39,6 +39,7 @@
|
||||
"RequiredField": "Required field",
|
||||
"ChangeButton": "Change",
|
||||
"Phone": "Phone",
|
||||
"ChangesSavedSuccessfully": "Changes saved successfully",
|
||||
|
||||
"CustomEmployedSinceDate": "{{employedSinceDate}}",
|
||||
"CustomPosition": "{{position}}",
|
||||
|
@ -39,6 +39,7 @@
|
||||
"RequiredField": "Обязательное поле",
|
||||
"ChangeButton": "Изменить",
|
||||
"Phone": "Телефон",
|
||||
"ChangesSavedSuccessfully": "Изменения успешно сохранены",
|
||||
|
||||
"CustomEmployedSinceDate": "{{employedSinceDate}}",
|
||||
"CustomPosition": "{{position}}",
|
||||
|
Loading…
Reference in New Issue
Block a user