Add logged-out access to the web UI (#18961)
This commit is contained in:
		@@ -60,6 +60,7 @@ class ColumnsArea extends ImmutablePureComponent {
 | 
			
		||||
 | 
			
		||||
  static contextTypes = {
 | 
			
		||||
    router: PropTypes.object.isRequired,
 | 
			
		||||
    identity: PropTypes.object.isRequired,
 | 
			
		||||
  };
 | 
			
		||||
 | 
			
		||||
  static propTypes = {
 | 
			
		||||
@@ -212,11 +213,12 @@ class ColumnsArea extends ImmutablePureComponent {
 | 
			
		||||
  render () {
 | 
			
		||||
    const { columns, children, singleColumn, isModalOpen, intl } = this.props;
 | 
			
		||||
    const { shouldAnimate, renderComposePanel } = this.state;
 | 
			
		||||
    const { signedIn } = this.context.identity;
 | 
			
		||||
 | 
			
		||||
    const columnIndex = getIndex(this.context.router.history.location.pathname);
 | 
			
		||||
 | 
			
		||||
    if (singleColumn) {
 | 
			
		||||
      const floatingActionButton = shouldHideFAB(this.context.router.history.location.pathname) ? null : <Link key='floating-action-button' to='/publish' className='floating-action-button' aria-label={intl.formatMessage(messages.publish)}><Icon id='pencil' /></Link>;
 | 
			
		||||
      const floatingActionButton = (!signedIn || shouldHideFAB(this.context.router.history.location.pathname)) ? null : <Link key='floating-action-button' to='/publish' className='floating-action-button' aria-label={intl.formatMessage(messages.publish)}><Icon id='pencil' /></Link>;
 | 
			
		||||
 | 
			
		||||
      const content = columnIndex !== -1 ? (
 | 
			
		||||
        <ReactSwipeableViews key='content' hysteresis={0.2} threshold={15} index={columnIndex} onChangeIndex={this.handleSwipe} onTransitionEnd={this.handleAnimationEnd} animateTransitions={shouldAnimate} springConfig={{ duration: '400ms', delay: '0s', easeFunction: 'ease' }} style={{ height: '100%' }} disabled={disableSwiping}>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user