Этот коммит содержится в:
=Corey Hulen
2015-12-21 14:36:12 -08:00
родитель a960cf5244
Коммит f08d575a14

Просмотреть файл

@@ -28,6 +28,8 @@ export default class TeamSignUp extends React.Component {
this.state = {page: 'email'}; this.state = {page: 'email'};
} else if (global.window.mm_config.EnableSignUpWithGitLab === 'true') { } else if (global.window.mm_config.EnableSignUpWithGitLab === 'true') {
this.state = {page: 'gitlab'}; this.state = {page: 'gitlab'};
} else {
this.state = {page: 'none'};
} }
} }
@@ -119,6 +121,8 @@ export default class TeamSignUp extends React.Component {
<SSOSignupPage service={Constants.GOOGLE_SERVICE} /> <SSOSignupPage service={Constants.GOOGLE_SERVICE} />
</div> </div>
); );
} else if (this.state.page === 'none') {
return (<div>{'No team creation method has been enabled. Please contact an administrator for access.'}</div>);
} }
} }
} }