|
|
@ -28,7 +28,6 @@ export default class ColumnHeader extends React.PureComponent {
|
|
|
|
active: PropTypes.bool,
|
|
|
|
active: PropTypes.bool,
|
|
|
|
localSettings : ImmutablePropTypes.map,
|
|
|
|
localSettings : ImmutablePropTypes.map,
|
|
|
|
multiColumn: PropTypes.bool,
|
|
|
|
multiColumn: PropTypes.bool,
|
|
|
|
focusable: PropTypes.bool,
|
|
|
|
|
|
|
|
showBackButton: PropTypes.bool,
|
|
|
|
showBackButton: PropTypes.bool,
|
|
|
|
notifCleaning: PropTypes.bool, // true only for the notification column
|
|
|
|
notifCleaning: PropTypes.bool, // true only for the notification column
|
|
|
|
notifCleaningActive: PropTypes.bool,
|
|
|
|
notifCleaningActive: PropTypes.bool,
|
|
|
@ -41,10 +40,6 @@ export default class ColumnHeader extends React.PureComponent {
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
intl: PropTypes.object.isRequired,
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
static defaultProps = {
|
|
|
|
|
|
|
|
focusable: true,
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
state = {
|
|
|
|
state = {
|
|
|
|
collapsed: true,
|
|
|
|
collapsed: true,
|
|
|
|
animating: false,
|
|
|
|
animating: false,
|
|
|
@ -91,7 +86,7 @@ export default class ColumnHeader extends React.PureComponent {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
render () {
|
|
|
|
render () {
|
|
|
|
const { intl, icon, active, children, pinned, onPin, multiColumn, focusable, showBackButton, intl: { formatMessage }, notifCleaning, notifCleaningActive } = this.props;
|
|
|
|
const { intl, icon, active, children, pinned, onPin, multiColumn, showBackButton, intl: { formatMessage }, notifCleaning, notifCleaningActive } = this.props;
|
|
|
|
const { collapsed, animating, animatingNCD } = this.state;
|
|
|
|
const { collapsed, animating, animatingNCD } = this.state;
|
|
|
|
|
|
|
|
|
|
|
|
let title = this.props.title;
|
|
|
|
let title = this.props.title;
|
|
|
@ -172,11 +167,13 @@ export default class ColumnHeader extends React.PureComponent {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className={wrapperClassName}>
|
|
|
|
<div className={wrapperClassName}>
|
|
|
|
<h1 tabIndex={focusable ? 0 : null} role='button' className={buttonClassName} aria-label={title} onClick={this.handleTitleClick}>
|
|
|
|
<h1 className={buttonClassName}>
|
|
|
|
<i className={`fa fa-fw fa-${icon} column-header__icon`} />
|
|
|
|
<button onClick={this.handleTitleClick}>
|
|
|
|
<span className='column-header__title'>
|
|
|
|
<i className={`fa fa-fw fa-${icon} column-header__icon`} />
|
|
|
|
{title}
|
|
|
|
<span className='column-header__title'>
|
|
|
|
</span>
|
|
|
|
{title}
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
|
|
|
</button>
|
|
|
|
<div className='column-header__buttons'>
|
|
|
|
<div className='column-header__buttons'>
|
|
|
|
{backButton}
|
|
|
|
{backButton}
|
|
|
|
{ notifCleaning ? (
|
|
|
|
{ notifCleaning ? (
|
|
|
|