fix(ui): fix sso error tooltip

This commit is contained in:
nick-delirium 2023-01-27 17:41:56 +01:00 committed by Taha Yassine Kraiem
parent 53ca39100f
commit 90a01ca810

View file

@ -65,7 +65,7 @@ class Login extends React.Component {
render() {
const { errors, loading, authDetails } = this.props;
const { CAPTCHA_ENABLED } = this.state;
console.log(authDetails)
return (
<div className="flex flex-col md:flex-row" style={{ height: '100vh' }}>
<div className={cn('md:w-6/12 relative', stl.left)}>
@ -165,7 +165,7 @@ class Login extends React.Component {
) : (
<Tooltip
delay={0}
title={<div>This feature requires an enterprise license.</div>}
title={<div>{authDetails.edition === 'ee' ? "SSO has not been configured. Please reach out to your admin." : "This feature requires an enterprise license."}</div>}
placement="top"
>
<Button