From 9f807ae3fe9ec5b3b860cfb496b8d080dfd4f8c5 Mon Sep 17 00:00:00 2001 From: Bernie Reiter Date: Thu, 1 Jul 2021 17:39:22 +0200 Subject: [PATCH] Disable the Cancel button, too --- .../editor/src/components/post-publish-panel/index.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/editor/src/components/post-publish-panel/index.js b/packages/editor/src/components/post-publish-panel/index.js index c2092bd70e339..9cd93d1230415 100644 --- a/packages/editor/src/components/post-publish-panel/index.js +++ b/packages/editor/src/components/post-publish-panel/index.js @@ -62,6 +62,7 @@ export class PostPublishPanel extends Component { isPublishSidebarEnabled, isScheduled, isSaving, + isSavingNonPostEntityChanges, onClose, onTogglePublishSidebar, PostPublishExtension, @@ -97,7 +98,11 @@ export class PostPublishPanel extends Component { />
-
@@ -140,6 +145,7 @@ export default compose( [ isEditedPostBeingScheduled, isEditedPostDirty, isSavingPost, + isSavingNonPostEntityChanges, } = select( editorStore ); const { isPublishSidebarEnabled } = select( editorStore ); const postType = getPostType( getEditedPostAttribute( 'type' ) ); @@ -156,6 +162,7 @@ export default compose( [ isPublished: isCurrentPostPublished(), isPublishSidebarEnabled: isPublishSidebarEnabled(), isSaving: isSavingPost(), + isSavingNonPostEntityChanges: isSavingNonPostEntityChanges(), isScheduled: isCurrentPostScheduled(), }; } ),