Web: added new translation key "ChangePhoneInstructionSent" for ChangePhoneDialog

This commit is contained in:
Artem Tarasov 2021-06-02 11:23:02 +03:00
parent d3e30eeb6c
commit 883130c002
3 changed files with 6 additions and 4 deletions

View File

@ -1,4 +1,5 @@
{
"MobilePhoneChangeTitle": "Change mobile phone",
"MobilePhoneEraseDescription": "The instructions on how to change the user mobile number will be sent to the user email address"
"MobilePhoneEraseDescription": "The instructions on how to change the user mobile number will be sent to the user email address",
"ChangePhoneInstructionSent": "The phone change instructions have been successfully sent"
}

View File

@ -1,4 +1,5 @@
{
"MobilePhoneChangeTitle": "Изменение номера телефона",
"MobilePhoneEraseDescription": "Инструкция по смене номера мобильного телефона будет отправлена на Вашу почту"
"MobilePhoneEraseDescription": "Инструкция по смене номера мобильного телефона будет отправлена на Вашу почту",
"ChangePhoneInstructionSent": "Инструкции по смене номера мобильного телефона были успешно отправлены"
}

View File

@ -17,9 +17,9 @@ class ChangePhoneDialogComponent extends React.Component {
// TODO: add real api request for executing change phone
onChangePhone = () => {
const { onClose } = this.props;
const { onClose, t } = this.props;
this.setState({ isRequestRunning: true }, () => {
toastr.success("Context action: Change phone");
toastr.success(t("ChangePhoneInstructionSent"));
this.setState({ isRequestRunning: false }, () => onClose());
});
};