Skip to content

Commit

Permalink
Rudimentary display of block mover in block navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
talldan committed Oct 18, 2019
1 parent 013ed32 commit 382f32b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/block-editor/src/components/block-navigation/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { create, getTextContent } from '@wordpress/rich-text';
* Internal dependencies
*/
import BlockIcon from '../block-icon';
import BlockMover from '../block-mover';

/**
* Get the block display name, if it has one, or the block title if it doesn't.
Expand Down Expand Up @@ -69,6 +70,7 @@ export default function BlockNavigationList( {
{ getBlockDisplayName( blockType, block.attributes ) }
{ isSelected && <span className="screen-reader-text">{ __( '(selected block)' ) }</span> }
</Button>
{ blocks.length > 1 && ( <BlockMover clientIds={ [ block.clientId ] } /> ) }
</div>
{ showNestedBlocks && !! block.innerBlocks && !! block.innerBlocks.length && (
<BlockNavigationList
Expand Down

0 comments on commit 382f32b

Please sign in to comment.