← All changes
|
assets/js/admin-modal/grid/section/SectionDataSource.js
+0
-37
3.5.0
→
3.0.0
View file →
| @@ -44,45 +44,8 @@ | ||
| 44 | 44 | label={ __wpupg( 'Post Types' ) } |
| 45 | 45 | help={ wpupg_admin.addons.premium ? null : __wpupg( 'Multiple post types are available in WP Ultimate Post Grid Premium' ) } |
| 46 | 46 | /> |
| 47 | 47 | <Field |
| 48 | - value={ props.grid.post_status } | |
| 49 | - onChange={ ( value ) => { | |
| 50 | - props.onGridChange({ | |
| 51 | - post_status: value, | |
| 52 | - }); | |
| 53 | - }} | |
| 54 | - type="dropdown" | |
| 55 | - label={ __wpupg( 'Post Status' ) } | |
| 56 | - options={[ | |
| 57 | - { | |
| 58 | - value: 'publish', | |
| 59 | - label: __wpupg( 'Published Posts' ), | |
| 60 | - }, | |
| 61 | - { | |
| 62 | - value: 'private', | |
| 63 | - label: __wpupg( 'Private Posts' ), | |
| 64 | - }, | |
| 65 | - ]} | |
| 66 | - isMulti | |
| 67 | - help={ __wpupg( 'Select the post statusses you want to display in the grid.' ) } | |
| 68 | - /> | |
| 69 | - { | |
| 70 | - props.grid.post_status.includes( 'private' ) | |
| 71 | - && | |
| 72 | - <Field | |
| 73 | - value={ props.grid.post_status_require_permission } | |
| 74 | - onChange={ ( value ) => { | |
| 75 | - props.onGridChange({ | |
| 76 | - post_status_require_permission: value, | |
| 77 | - }); | |
| 78 | - }} | |
| 79 | - type="checkbox" | |
| 80 | - label={ __wpupg( 'Only if readable' ) } | |
| 81 | - help={ __wpupg( 'Only show private posts when a visitor has read permission for them.' ) } | |
| 82 | - /> | |
| 83 | - } | |
| 84 | - <Field | |
| 85 | 48 | value={ props.grid.order_by } |
| 86 | 49 | onChange={ ( value ) => { |
| 87 | 50 | props.onGridChange({ |
| 88 | 51 | order_by: value, |