Web: Resolved NotFoundKeysTest issues (OkButton, LoadingLicenseSuccess, LoadingLicenseError, OrganizationName)
This commit is contained in:
parent
c3467bae12
commit
f825c6eabd
@ -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}
|
||||
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
@ -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)));
|
||||
|
Loading…
Reference in New Issue
Block a user