Web: Login: fix show sso
This commit is contained in:
parent
646473f4f7
commit
6e5a1572b4
@ -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;
|
||||
};
|
||||
|
||||
|
@ -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")}
|
||||
|
Loading…
Reference in New Issue
Block a user