Commit e83c92e 1 parent bb5b306 commit e83c92e Copy full SHA for e83c92e
File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export default function Editor() {
67
67
isInserterOpen,
68
68
isListViewOpen,
69
69
showIconLabels,
70
+ showBlockBreadcrumbs,
70
71
} = useSelect ( ( select ) => {
71
72
const {
72
73
getEditedPostContext,
@@ -94,15 +95,22 @@ export default function Editor() {
94
95
'core/edit-site' ,
95
96
'showIconLabels'
96
97
) ,
98
+ showBlockBreadcrumbs : select ( preferencesStore ) . get (
99
+ 'core/edit-site' ,
100
+ 'showBlockBreadcrumbs'
101
+ ) ,
97
102
} ;
98
103
} , [ ] ) ;
99
104
const { setEditedPostContext } = useDispatch ( editSiteStore ) ;
100
105
101
106
const isViewMode = canvasMode === 'view' ;
102
107
const isEditMode = canvasMode === 'edit' ;
103
108
const showVisualEditor = isViewMode || editorMode === 'visual' ;
104
- const showBlockBreakcrumb =
105
- isEditMode && showVisualEditor && blockEditorMode !== 'zoom-out' ;
109
+ const shouldShowBlockBreakcrumbs =
110
+ showBlockBreadcrumbs &&
111
+ isEditMode &&
112
+ showVisualEditor &&
113
+ blockEditorMode !== 'zoom-out' ;
106
114
const shouldShowInserter = isEditMode && showVisualEditor && isInserterOpen ;
107
115
const shouldShowListView = isEditMode && showVisualEditor && isListViewOpen ;
108
116
const secondarySidebarLabel = isListViewOpen
@@ -205,7 +213,7 @@ export default function Editor() {
205
213
)
206
214
}
207
215
footer = {
208
- showBlockBreakcrumb && (
216
+ shouldShowBlockBreakcrumbs && (
209
217
< BlockBreadcrumb
210
218
rootLabelText = { __ ( 'Template' ) }
211
219
/>
Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ export default function EditSitePreferencesModal( {
48
48
) }
49
49
label = { __ ( 'Always open list view' ) }
50
50
/>
51
+ < EnableFeature
52
+ featureName = "showBlockBreadcrumbs"
53
+ help = { __ (
54
+ 'Shows block breadcrumbs at the bottom of the editor.'
55
+ ) }
56
+ label = { __ ( 'Display block breadcrumbs' ) }
57
+ />
51
58
</ PreferencesModalSection >
52
59
) ,
53
60
} ,
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ export function initializeEditor( id, settings ) {
67
67
welcomeGuide : true ,
68
68
welcomeGuideStyles : true ,
69
69
showListViewByDefault : false ,
70
+ showBlockBreadcrumbs : true ,
70
71
} ) ;
71
72
72
73
dispatch ( interfaceStore ) . setDefaultComplementaryArea (
You can’t perform that action at this time.
0 commit comments