Update compare button help text (https://github.com/woocommerce/woocommerce-admin/pull/1796)
This commit is contained in:
parent
6ad9df9e52
commit
df5f001140
|
@ -72,7 +72,7 @@ export const filters = [
|
||||||
param: 'categories',
|
param: 'categories',
|
||||||
getLabels: getCategoryLabels,
|
getLabels: getCategoryLabels,
|
||||||
labels: {
|
labels: {
|
||||||
helpText: __( 'Select at least two categories to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two categories below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search for categories to compare', 'woocommerce-admin' ),
|
placeholder: __( 'Search for categories to compare', 'woocommerce-admin' ),
|
||||||
title: __( 'Compare Categories', 'woocommerce-admin' ),
|
title: __( 'Compare Categories', 'woocommerce-admin' ),
|
||||||
update: __( 'Compare', 'woocommerce-admin' ),
|
update: __( 'Compare', 'woocommerce-admin' ),
|
||||||
|
|
|
@ -137,7 +137,7 @@ class CategoriesReportTable extends Component {
|
||||||
const { isRequesting, query } = this.props;
|
const { isRequesting, query } = this.props;
|
||||||
|
|
||||||
const labels = {
|
const labels = {
|
||||||
helpText: __( 'Select at least two categories to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two categories below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search by category name', 'woocommerce-admin' ),
|
placeholder: __( 'Search by category name', 'woocommerce-admin' ),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ export const filters = [
|
||||||
labels: {
|
labels: {
|
||||||
title: __( 'Compare Coupon Codes', 'woocommerce-admin' ),
|
title: __( 'Compare Coupon Codes', 'woocommerce-admin' ),
|
||||||
update: __( 'Compare', 'woocommerce-admin' ),
|
update: __( 'Compare', 'woocommerce-admin' ),
|
||||||
helpText: __( 'Select at least two coupon codes to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two coupon codes below to compare', 'woocommerce-admin' ),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -71,7 +71,7 @@ const filterConfig = {
|
||||||
param: 'products',
|
param: 'products',
|
||||||
getLabels: getProductLabels,
|
getLabels: getProductLabels,
|
||||||
labels: {
|
labels: {
|
||||||
helpText: __( 'Select at least two products to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two products below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search for products to compare', 'woocommerce-admin' ),
|
placeholder: __( 'Search for products to compare', 'woocommerce-admin' ),
|
||||||
title: __( 'Compare Products', 'woocommerce-admin' ),
|
title: __( 'Compare Products', 'woocommerce-admin' ),
|
||||||
update: __( 'Compare', 'woocommerce-admin' ),
|
update: __( 'Compare', 'woocommerce-admin' ),
|
||||||
|
@ -101,7 +101,7 @@ const variationsConfig = {
|
||||||
param: 'variations',
|
param: 'variations',
|
||||||
getLabels: getVariationLabels,
|
getLabels: getVariationLabels,
|
||||||
labels: {
|
labels: {
|
||||||
helpText: __( 'Select at least two variations to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two variations below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search for variations to compare', 'woocommerce-admin' ),
|
placeholder: __( 'Search for variations to compare', 'woocommerce-admin' ),
|
||||||
title: __( 'Compare Variations', 'woocommerce-admin' ),
|
title: __( 'Compare Variations', 'woocommerce-admin' ),
|
||||||
update: __( 'Compare', 'woocommerce-admin' ),
|
update: __( 'Compare', 'woocommerce-admin' ),
|
||||||
|
|
|
@ -164,7 +164,7 @@ export default class VariationsReportTable extends Component {
|
||||||
const { isRequesting, query } = this.props;
|
const { isRequesting, query } = this.props;
|
||||||
|
|
||||||
const labels = {
|
const labels = {
|
||||||
helpText: __( 'Select at least two variations to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two variations below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search by variation name', 'woocommerce-admin' ),
|
placeholder: __( 'Search by variation name', 'woocommerce-admin' ),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -228,7 +228,7 @@ class ProductsReportTable extends Component {
|
||||||
const { query, isRequesting, baseSearchQuery, hideCompare } = this.props;
|
const { query, isRequesting, baseSearchQuery, hideCompare } = this.props;
|
||||||
|
|
||||||
const labels = {
|
const labels = {
|
||||||
helpText: __( 'Select at least two products to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two products below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search by product name or SKU', 'woocommerce-admin' ),
|
placeholder: __( 'Search by product name or SKU', 'woocommerce-admin' ),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -62,7 +62,7 @@ export const filters = [
|
||||||
label: getTaxCode( tax ),
|
label: getTaxCode( tax ),
|
||||||
} ) ),
|
} ) ),
|
||||||
labels: {
|
labels: {
|
||||||
helpText: __( 'Select at least two tax codes to compare', 'woocommerce-admin' ),
|
helpText: __( 'Check at least two tax codes below to compare', 'woocommerce-admin' ),
|
||||||
placeholder: __( 'Search for tax codes to compare', 'woocommerce-admin' ),
|
placeholder: __( 'Search for tax codes to compare', 'woocommerce-admin' ),
|
||||||
title: __( 'Compare Tax Codes', 'woocommerce-admin' ),
|
title: __( 'Compare Tax Codes', 'woocommerce-admin' ),
|
||||||
update: __( 'Compare', 'woocommerce-admin' ),
|
update: __( 'Compare', 'woocommerce-admin' ),
|
||||||
|
|
|
@ -290,7 +290,7 @@ class TableCard extends Component {
|
||||||
className="woocommerce-table__compare"
|
className="woocommerce-table__compare"
|
||||||
count={ selectedRows.length }
|
count={ selectedRows.length }
|
||||||
helpText={
|
helpText={
|
||||||
labels.helpText || __( 'Select at least two items to compare', 'woocommerce-admin' )
|
labels.helpText || __( 'Check at least two items below to compare', 'woocommerce-admin' )
|
||||||
}
|
}
|
||||||
onClick={ this.onCompare }
|
onClick={ this.onCompare }
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue