Updated home_column_header for lists

if no lists, go to /lists page
This commit is contained in:
mgabdev 2019-07-19 00:20:33 -04:00
parent 94566e0ab4
commit cfe4d7530c

View File

@ -146,12 +146,18 @@ class ColumnHeader extends React.PureComponent {
{formatMessage(messages.allTitle)} {formatMessage(messages.allTitle)}
</Link> </Link>
{ { lists.size > 0 &&
<a onClick={this.expandLists} className={classNames('btn grouped', {'active': 'lists' === activeItem})}> <a onClick={this.expandLists} className={classNames('btn grouped', {'active': 'lists' === activeItem})}>
<Icon id='list' fixedWidth className='column-header__icon' /> <Icon id='list' fixedWidth className='column-header__icon' />
{formatMessage(messages.listTitle)} {formatMessage(messages.listTitle)}
</a> </a>
} }
{ lists.size == 0 &&
<Link to='/lists' className='btn grouped'>
<Icon id='list' fixedWidth className='column-header__icon' />
{formatMessage(messages.listTitle)}
</Link>
}
<div className='column-header__buttons'> <div className='column-header__buttons'>
{collapseButton} {collapseButton}