feat: fix 'Enable code sign' is not displayed in the login page (#925)

This commit is contained in:
imp2002
2022-07-28 23:11:33 +08:00
committed by GitHub
parent 3dd56195d9
commit 1c72f5300c

View File

@ -505,7 +505,7 @@ class LoginPage extends React.Component {
) )
} }
{ {
!application.enableSignUp ? null : this.renderFooter(application) this.renderFooter(application)
} }
</Form.Item> </Form.Item>
<Form.Item> <Form.Item>
@ -535,16 +535,12 @@ class LoginPage extends React.Component {
return this.renderProviderLogo(providerItem.provider, application, 40, 10, "big"); return this.renderProviderLogo(providerItem.provider, application, 40, 10, "big");
}) })
} }
{
!application.enableSignUp ? null : (
<div> <div>
<br /> <br />
{ {
this.renderFooter(application) this.renderFooter(application)
} }
</div> </div>
)
}
</div> </div>
); );
} }
@ -579,6 +575,9 @@ class LoginPage extends React.Component {
} }
</span> </span>
<span style={{float: "right"}}> <span style={{float: "right"}}>
{
!application.enableSignUp ? null : (
<>
{i18next.t("login:No account?")}&nbsp; {i18next.t("login:No account?")}&nbsp;
<a onClick={() => { <a onClick={() => {
sessionStorage.setItem("signinUrl", window.location.href); sessionStorage.setItem("signinUrl", window.location.href);
@ -586,6 +585,9 @@ class LoginPage extends React.Component {
}}> }}>
{i18next.t("login:sign up now")} {i18next.t("login:sign up now")}
</a> </a>
</>
)
}
</span> </span>
</React.Fragment> </React.Fragment>
); );