Skip to content

Commit

Permalink
Pages data view: Add Pending and Private views (WordPress#62138)
Browse files Browse the repository at this point in the history
Co-authored-by: jameskoster <[email protected]>
Co-authored-by: jasmussen <[email protected]>
  • Loading branch information
3 people authored and carstingaxion committed Jun 4, 2024
1 parent 5a63d6d commit 3549387
Showing 1 changed file with 31 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* WordPress dependencies
*/
import { __ } from '@wordpress/i18n';
import { trash, pages, drafts } from '@wordpress/icons';
import { trash, pages, drafts, unseen, inbox } from '@wordpress/icons';

/**
* Internal dependencies
Expand Down Expand Up @@ -99,6 +99,36 @@ export const DEFAULT_VIEWS = {
],
},
},
{
title: __( 'Pending' ),
slug: 'pending',
icon: inbox,
view: {
...DEFAULT_PAGE_BASE,
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
value: 'pending',
},
],
},
},
{
title: __( 'Private' ),
slug: 'private',
icon: unseen,
view: {
...DEFAULT_PAGE_BASE,
filters: [
{
field: 'status',
operator: OPERATOR_IS_ANY,
value: 'private',
},
],
},
},
{
title: __( 'Trash' ),
slug: 'trash',
Expand Down

0 comments on commit 3549387

Please sign in to comment.