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

Site Editor: Move the Page and Template Selectors into the new Navigation #25262

Closed
Copons opened this issue Sep 11, 2020 · 1 comment
Closed
Assignees
Labels
[Feature] Navigation Component A navigational waterfall component for hierarchy of items.

Comments

@Copons
Copy link
Contributor

Copons commented Sep 11, 2020

The new Navigation component has been merged.

Let's move the page/template selector away from the site editor header and into the new navigation!

<div className="edit-site-header__toolbar-switchers">
<PageSwitcher
showOnFront={ showOnFront }
activePage={ page }
onActivePageChange={ setPage }
/>
<div className="edit-site-header__toolbar-switchers-separator">
/
</div>
<TemplateSwitcher
page={ page }
activeId={ templateId }
activeTemplatePartId={ templatePartId }
isTemplatePart={ templateType === 'wp_template_part' }
onActiveIdChange={ setTemplate }
onActiveTemplatePartIdChange={ setTemplatePart }
onAddTemplate={ addTemplate }
onRemoveTemplate={ removeTemplate }
/>
</div>

See #25260, #25261

@Copons
Copy link
Contributor Author

Copons commented Oct 15, 2020

Fixed by #25620 and #25615!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Navigation Component A navigational waterfall component for hierarchy of items.
Projects
None yet
Development

No branches or pull requests

2 participants