Ivan - Fix some issues related to no user system [skip ci]

This commit is contained in:
ivan 2017-01-21 02:00:04 -03:00
parent c18142f2ba
commit 09c6453d46
3 changed files with 6 additions and 4 deletions

View File

@ -42,12 +42,12 @@ class DashboardArticlePage extends React.Component {
return (
<div className={this.getClass()}>
<Widget>
<Wrapper>
<div className="dashboard-article-page__breadcrumb">
<BreadCrumb items={this.getBreadCrumbItems()}/>
</div>
{(this.props.loading) ? <Loading /> : this.renderContent()}
</Widget>
</Wrapper>
</div>
);
}

View File

@ -32,7 +32,7 @@ class MainLayoutHeader extends React.Component {
result = (
<div className="main-layout-header__login-links">
<Button type="clean" route={{to:'/'}}>{i18n('LOG_IN')}</Button>
{this.props.config === true ? <Button type="clean" route={{to:'/signup'}}>{i18n('SIGN_UP')}</Button> : null}
{(this.props.config['registration'] === true) ? <Button type="clean" route={{to:'/signup'}}>{i18n('SIGN_UP')}</Button> : null}
</div>
);
}

View File

@ -19,6 +19,7 @@ module.exports = [
'smtp-port': '7070',
'smtp-user': 'Wesa',
'maintenance-mode': false,
'user-system-enabled': true,
'allow-attachments': true,
'registration': true,
'max-size': 500,
@ -41,7 +42,8 @@ module.exports = [
'layout': 'Boxed',
'reCaptchaKey': '6LfM5CYTAAAAAGLz6ctpf-hchX2_l0Ge-Bn-n8wS',
'maintenance-mode': false,
'user-system-enabled': false,
'user-system-enabled': true,
'registration': true,
'departments': [
{id: 1, name: 'Sales Support', owners: 2},
{id: 2, name: 'Technical Issues', owners: 5},