Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore Multi-Entity Saving #18029

Merged
merged 15 commits into from
Dec 12, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Post Publish Button: Enable buttons when there are non post entity ch…
…anges.
  • Loading branch information
epiqueras committed Dec 12, 2019
commit 3e0b33909adb3946fc2d7be4fb920e0300d9b149
4 changes: 2 additions & 2 deletions packages/editor/src/components/post-publish-button/index.js
Original file line number Diff line number Diff line change
@@ -140,15 +140,15 @@ export class PostPublishButton extends Component {
};

const buttonProps = {
'aria-disabled': isButtonDisabled,
'aria-disabled': isButtonDisabled && ! hasNonPostEntityChanges,
className: 'editor-post-publish-button',
isBusy: isSaving && isPublished,
isPrimary: true,
onClick: this.createOnClick( onClickButton ),
};

const toggleProps = {
'aria-disabled': isToggleDisabled,
'aria-disabled': isToggleDisabled && ! hasNonPostEntityChanges,
'aria-expanded': isOpen,
className: 'editor-post-publish-panel__toggle',
isBusy: isSaving && isPublished,