fix staticParams (https://github.com/woocommerce/woocommerce-admin/pull/4704)
This commit is contained in:
parent
643ca9b6fb
commit
d03f3e9553
|
@ -43,7 +43,7 @@ export const charts = applyFilters( CATEGORY_REPORT_CHARTS_FILTER, [
|
|||
export const filters = applyFilters( CATEGORY_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page', 'categories' ],
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
|
@ -34,7 +34,7 @@ export const charts = applyFilters( COUPON_REPORT_CHARTS_FILTER, [
|
|||
export const filters = applyFilters( COUPON_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page', 'coupons' ],
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
|
@ -22,33 +22,7 @@ const CUSTOMERS_REPORT_ADVANCED_FILTERS_FILTER =
|
|||
export const filters = applyFilters( CUSTOMERS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [
|
||||
'paged',
|
||||
'per_page',
|
||||
'name_includes',
|
||||
'name_excludes',
|
||||
'country_includes',
|
||||
'country_excludes',
|
||||
'username_includes',
|
||||
'username_excludes',
|
||||
'email_includes',
|
||||
'email_excludes',
|
||||
'orders_count_min',
|
||||
'orders_count_max',
|
||||
'orders_count_between',
|
||||
'total_spend_min',
|
||||
'total_spend_max',
|
||||
'total_spend_between',
|
||||
'avg_order_value_min',
|
||||
'avg_order_value_max',
|
||||
'avg_order_value_between',
|
||||
'registered_before',
|
||||
'registered_after',
|
||||
'registered_between',
|
||||
'last_active_before',
|
||||
'last_active_after',
|
||||
'last_active_between',
|
||||
],
|
||||
staticParams: [ 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
|
@ -27,19 +27,7 @@ export const charts = applyFilters( DOWLOADS_REPORT_CHARTS_FILTER, [
|
|||
export const filters = applyFilters( DOWLOADS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [
|
||||
'chartType',
|
||||
'paged',
|
||||
'per_page',
|
||||
'product_includes',
|
||||
'product_excludes',
|
||||
'customer_includes',
|
||||
'customer_excludes',
|
||||
'order_includes',
|
||||
'order_excludes',
|
||||
'ip_address_includes',
|
||||
'ip_address_excludes',
|
||||
],
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
|
@ -49,21 +49,7 @@ export const charts = applyFilters( ORDERS_REPORT_CHARTS_FILTER, [
|
|||
export const filters = applyFilters( ORDERS_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [
|
||||
'chartType',
|
||||
'paged',
|
||||
'per_page',
|
||||
'product_includes',
|
||||
'product_excludes',
|
||||
'status_is',
|
||||
'status_is_not',
|
||||
'coupon_includes',
|
||||
'coupon_excludes',
|
||||
'refunds',
|
||||
'tax_rate_includes',
|
||||
'tax_rate_excludes',
|
||||
'customer_type',
|
||||
],
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
|
@ -42,7 +42,7 @@ export const charts = applyFilters( PRODUCTS_REPORT_CHARTS_FILTER, [
|
|||
|
||||
const filterConfig = {
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page', 'products' ],
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
|
@ -50,7 +50,7 @@ export const charts = applyFilters( TAXES_REPORT_CHARTS_FILTER, [
|
|||
export const filters = applyFilters( TAXES_REPORT_FILTERS_FILTER, [
|
||||
{
|
||||
label: __( 'Show', 'woocommerce-admin' ),
|
||||
staticParams: [ 'chartType', 'paged', 'per_page', 'taxes' ],
|
||||
staticParams: [ 'chartType', 'paged', 'per_page' ],
|
||||
param: 'filter',
|
||||
showFilters: () => true,
|
||||
filters: [
|
||||
|
|
Loading…
Reference in New Issue