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");
}) })
} }
{ <div>
!application.enableSignUp ? null : ( <br />
<div> {
<br /> this.renderFooter(application)
{ }
this.renderFooter(application) </div>
}
</div>
)
}
</div> </div>
); );
} }
@ -579,13 +575,19 @@ class LoginPage extends React.Component {
} }
</span> </span>
<span style={{float: "right"}}> <span style={{float: "right"}}>
{i18next.t("login:No account?")}&nbsp; {
<a onClick={() => { !application.enableSignUp ? null : (
sessionStorage.setItem("signinUrl", window.location.href); <>
Setting.goToSignup(this, application); {i18next.t("login:No account?")}&nbsp;
}}> <a onClick={() => {
{i18next.t("login:sign up now")} sessionStorage.setItem("signinUrl", window.location.href);
</a> Setting.goToSignup(this, application);
}}>
{i18next.t("login:sign up now")}
</a>
</>
)
}
</span> </span>
</React.Fragment> </React.Fragment>
); );