Skip to content

Commit

Permalink
set up isAutosaving
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Silverstein committed Apr 27, 2018
1 parent fd84ca5 commit dad5683
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions editor/components/post-publish-button/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default compose( [
isEditedPostSaveable,
isEditedPostPublishable,
getCurrentPostType,
isAutosavingPost,
} = select( 'core/editor' );
return {
isSaving: forceIsSaving || isSavingPost(),
Expand All @@ -84,6 +85,7 @@ export default compose( [
isSaveable: isEditedPostSaveable(),
isPublishable: forceIsDirty || isEditedPostPublishable(),
postType: getCurrentPostType(),
isAutosaving: isAutosavingPost(),
};
} ),
withDispatch( ( dispatch ) => {
Expand Down

0 comments on commit dad5683

Please sign in to comment.