Admin: add registration mode picker
This commit is contained in:
@@ -37,18 +37,18 @@ class AdminNav extends React.PureComponent {
|
||||
<IconWithCounter icon='gavel' count={reportsCount} fixedWidth />
|
||||
<FormattedMessage id='admin_nav.reports' defaultMessage='Reports' />
|
||||
</a>
|
||||
{(instance.get('approval_required') || approvalCount > 0) && (
|
||||
{((instance.get('registrations') && instance.get('approval_required')) || approvalCount > 0) && (
|
||||
<NavLink className='promo-panel-item' to='/admin/approval'>
|
||||
<IconWithCounter icon='user' count={approvalCount} fixedWidth />
|
||||
<FormattedMessage id='admin_nav.awaiting_approval' defaultMessage='Awaiting Approval' />
|
||||
</NavLink>
|
||||
)}
|
||||
{!instance.get('registrations') && (
|
||||
{/* <NavLink className='promo-panel-item' to='#'>
|
||||
{/* !instance.get('registrations') && (
|
||||
<NavLink className='promo-panel-item' to='#'>
|
||||
<Icon id='envelope' className='promo-panel-item__icon' fixedWidth />
|
||||
<FormattedMessage id='admin_nav.invites' defaultMessage='Invites' />
|
||||
</NavLink> */}
|
||||
)}
|
||||
</NavLink>
|
||||
) */}
|
||||
{/* <NavLink className='promo-panel-item' to='#'>
|
||||
<Icon id='group' className='promo-panel-item__icon' fixedWidth />
|
||||
<FormattedMessage id='admin_nav.registration' defaultMessage='Registration' />
|
||||
|
||||
Reference in New Issue
Block a user