diff --git a/web/ASC.Web.Client/src/components/pages/Confirm/sub-components/changePassword.js b/web/ASC.Web.Client/src/components/pages/Confirm/sub-components/changePassword.js index e42a015756..eb705cf532 100644 --- a/web/ASC.Web.Client/src/components/pages/Confirm/sub-components/changePassword.js +++ b/web/ASC.Web.Client/src/components/pages/Confirm/sub-components/changePassword.js @@ -186,7 +186,7 @@ class Form extends React.PureComponent { size="big" tabIndex={2} label={ - isLoading ? t("Common:LoadingProcessing") : t("Common:OkButton") + isLoading ? t("Common:LoadingProcessing") : t("Common:OKButton") } isDisabled={isLoading} isLoading={isLoading} diff --git a/web/ASC.Web.Client/src/components/pages/PaymentsEnterprise/sub-components/buttonContainer.js b/web/ASC.Web.Client/src/components/pages/PaymentsEnterprise/sub-components/buttonContainer.js index 22037e25e0..78d365158f 100644 --- a/web/ASC.Web.Client/src/components/pages/PaymentsEnterprise/sub-components/buttonContainer.js +++ b/web/ASC.Web.Client/src/components/pages/PaymentsEnterprise/sub-components/buttonContainer.js @@ -46,10 +46,10 @@ class Body extends React.PureComponent { setPaymentsLicense(null, fd) .then(() => { - toastr.success(t("LoadingLicenseSuccess"), ""); + toastr.success(t("SuccessLoadingLicense"), ""); }) .catch((error) => { - toastr.error(t("LoadingLicenseError"), "LicenseIsNotValid", 0, true); + toastr.error(t("ErrorLoadingLicense"), "LicenseIsNotValid", 0, true); console.log(error); }); }; diff --git a/web/ASC.Web.Client/src/components/pages/Settings/categories/integration/thirdPartyServicesSettings.js b/web/ASC.Web.Client/src/components/pages/Settings/categories/integration/thirdPartyServicesSettings.js index b026c97a9e..b3c0c86dfa 100644 --- a/web/ASC.Web.Client/src/components/pages/Settings/categories/integration/thirdPartyServicesSettings.js +++ b/web/ASC.Web.Client/src/components/pages/Settings/categories/integration/thirdPartyServicesSettings.js @@ -45,10 +45,9 @@ const Separator = styled.div` class ThirdPartyServices extends React.Component { constructor(props) { super(props); - const { t } = props; - document.title = `${t("ThirdPartyAuthorization")} – ${t( - "OrganizationName" - )}`; + const { t, setDocumentTitle } = props; + + setDocumentTitle(`${t("ThirdPartyAuthorization")}`); this.state = { dialogVisible: false, @@ -203,7 +202,7 @@ ThirdPartyServices.propTypes = { }; export default inject(({ setup, auth }) => { - const { settingsStore } = auth; + const { settingsStore, setDocumentTitle } = auth; const { urlAuthKeys } = settingsStore; const { getConsumers, @@ -219,5 +218,6 @@ export default inject(({ setup, auth }) => { getConsumers, updateConsumerProps, setSelectedConsumer, + setDocumentTitle, }; })(withTranslation(["Settings", "Common"])(observer(ThirdPartyServices)));