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

Pages sidebar: adds published & scheduled items #62021

Merged
merged 1 commit into from
May 27, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,36 @@ export const DEFAULT_VIEWS = {
icon: pages,
view: DEFAULT_PAGE_BASE,
},
{
title: __( 'Published' ),
slug: 'published',
icon: pages,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jameskoster in lieu of a better option, I reused the icon used for "All pages" here.

view: {
...DEFAULT_PAGE_BASE,
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
value: 'publish',
},
],
},
},
{
title: __( 'Scheduled' ),
slug: 'future',
icon: pages,
view: {
...DEFAULT_PAGE_BASE,
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
value: 'future',
},
],
},
},
{
title: __( 'Drafts' ),
slug: 'drafts',
Expand Down
Loading