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

Page List: Swap the positions of the parent page selector and customize button #47547

Merged
merged 1 commit into from
Jan 30, 2023
Merged
Changes from all commits
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
24 changes: 12 additions & 12 deletions packages/block-library/src/page-list/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -303,18 +303,6 @@ export default function PageListEdit( {
return (
<>
<InspectorControls>
{ allowConvertToLinks && (
<PanelBody title={ __( 'Customize this menu' ) }>
<p>{ convertDescription }</p>
<Button
variant="primary"
disabled={ ! hasResolvedPages }
onClick={ convertToNavigationLinks }
>
{ __( 'Customize' ) }
</Button>
</PanelBody>
) }
{ pagesTree.length > 0 && (
<PanelBody>
<ComboboxControl
Expand All @@ -331,6 +319,18 @@ export default function PageListEdit( {
/>
</PanelBody>
) }
{ allowConvertToLinks && (
<PanelBody title={ __( 'Customize this menu' ) }>
<p>{ convertDescription }</p>
<Button
variant="primary"
disabled={ ! hasResolvedPages }
onClick={ convertToNavigationLinks }
>
{ __( 'Customize' ) }
</Button>
</PanelBody>
) }
</InspectorControls>
{ allowConvertToLinks && (
<ConvertToLinksModal
Expand Down