PLT-2777 hide create account when not an open server (#2872)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
99143ec4d1
Коммит
6b06f49e89
@@ -342,25 +342,28 @@ export default class Login extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
const userSignUp = (
|
||||
<div>
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id='login.noAccount'
|
||||
defaultMessage="Don't have an account? "
|
||||
/>
|
||||
<Link
|
||||
to={'/signup_user_complete'}
|
||||
className='signup-team-login'
|
||||
>
|
||||
var userSignUp;
|
||||
if (global.window.mm_config.EnableOpenServer === 'true') {
|
||||
userSignUp = (
|
||||
<div>
|
||||
<span>
|
||||
<FormattedMessage
|
||||
id='login.create'
|
||||
defaultMessage='Create one now'
|
||||
id='login.noAccount'
|
||||
defaultMessage="Don't have an account? "
|
||||
/>
|
||||
</Link>
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
<Link
|
||||
to={'/signup_user_complete'}
|
||||
className='signup-team-login'
|
||||
>
|
||||
<FormattedMessage
|
||||
id='login.create'
|
||||
defaultMessage='Create one now'
|
||||
/>
|
||||
</Link>
|
||||
</span>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
let forgotPassword;
|
||||
if (usernameSigninEnabled || emailSigninEnabled) {
|
||||
|
||||
Ссылка в новой задаче
Block a user