Web: Login: fix show sso

This commit is contained in:
Viktor Fomin 2022-02-03 01:10:36 +03:00
parent 646473f4f7
commit 6e5a1572b4
2 changed files with 4 additions and 4 deletions

View File

@ -321,7 +321,7 @@ const Form = (props) => {
<SocialButton
iconName="/static/images/sso.react.svg"
className="socialButton"
label={ssoLabel}
label={ssoLabel || getProviderTranslation("sso", t)}
onClick={() => (window.location.href = ssoUrl)}
/>
</div>
@ -340,7 +340,7 @@ const Form = (props) => {
};
const ssoExists = () => {
if (ssoLabel && ssoUrl) return true;
if (ssoUrl) return true;
else return false;
};

View File

@ -54,11 +54,11 @@ const MoreLoginModal = (props) => {
>
<ModalDialog.Header>{t("Authorization")}</ModalDialog.Header>
<ModalDialog.Body>
{ssoLabel && ssoUrl && (
{ssoUrl && (
<ProviderRow key={`ProviderItemSSO`}>
<ReactSVG src="/static/images/sso.react.svg" />
<Text fontSize="14px" fontWeight="600" className="provider-name">
{ssoLabel}
{ssoLabel || getProviderTranslation("sso", t)}
</Text>
<Button
label={t("LoginButton")}