Skip to content

Commit

Permalink
Make sure the checkbox checks itself properly!
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahmonster committed Sep 19, 2018
1 parent 95a40ca commit 2976a21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/editor/src/components/post-publish-panel/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class PostPublishPanel extends Component {
}

render() {
const { hasPublishAction, isScheduled, isBeingScheduled, onClose, forceIsDirty, forceIsSaving, PrePublishExtension, PostPublishExtension, ...additionalProps } = this.props;
const { hasPublishAction, isScheduled, isBeingScheduled, isPublishSidebarEnabled, onClose, onTogglePublishSidebar, forceIsDirty, forceIsSaving, PrePublishExtension, PostPublishExtension, ...additionalProps } = this.props;
const { loading, submitted } = this.state;
let prePublishTitle;

Expand Down Expand Up @@ -116,9 +116,9 @@ class PostPublishPanel extends Component {

<div className="editor-post-publish-panel__disable-check">
<CheckboxControl
label={ __( 'Show this panel every time I publish a post' ) }
checked={ false }
onChange={ () => this.onUpdateDisableToggle() }
label={ __( 'Always show pre-publish checks.' ) }
checked={ isPublishSidebarEnabled }
onChange={ onTogglePublishSidebar }
/>
</div>

Expand Down

0 comments on commit 2976a21

Please sign in to comment.