Web: Resolved NotFoundKeysTest issues (OkButton, LoadingLicenseSuccess, LoadingLicenseError, OrganizationName)

This commit is contained in:
Alexey Safronov 2021-05-21 14:58:00 +03:00
parent c3467bae12
commit f825c6eabd
3 changed files with 8 additions and 8 deletions

View File

@ -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}

View File

@ -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);
});
};

View File

@ -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)));