Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update apply button description to be more clear for filter blocks (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
roykho authored Jan 31, 2023
1 parent a78d23a commit 7631019
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 44 deletions.
15 changes: 4 additions & 11 deletions assets/js/blocks/attribute-filter/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,17 +283,10 @@ const Edit = ( {
"Show 'Apply filters' button",
'woo-gutenberg-products-block'
) }
help={
showFilterButton
? __(
'Products will only update when the button is clicked.',
'woo-gutenberg-products-block'
)
: __(
'Products will update as soon as attributes are selected.',
'woo-gutenberg-products-block'
)
}
help={ __(
'Products will update when the button is clicked.',
'woo-gutenberg-products-block'
) }
checked={ showFilterButton }
onChange={ ( value ) =>
setAttributes( {
Expand Down
15 changes: 4 additions & 11 deletions assets/js/blocks/price-filter/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,17 +100,10 @@ export default function ( {
"Show 'Apply filters' button",
'woo-gutenberg-products-block'
) }
help={
showFilterButton
? __(
'Products will only update when the button is clicked.',
'woo-gutenberg-products-block'
)
: __(
'Products will update when the slider is moved.',
'woo-gutenberg-products-block'
)
}
help={ __(
'Products will update when the button is clicked.',
'woo-gutenberg-products-block'
) }
checked={ showFilterButton }
onChange={ () =>
setAttributes( {
Expand Down
15 changes: 4 additions & 11 deletions assets/js/blocks/rating-filter/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,10 @@ const Edit = ( {
"Show 'Apply filters' button",
'woo-gutenberg-products-block'
) }
help={
showFilterButton
? __(
'Products will only update when the button is clicked.',
'woo-gutenberg-products-block'
)
: __(
'Products will update as soon as attributes are selected.',
'woo-gutenberg-products-block'
)
}
help={ __(
'Products will update when the button is clicked.',
'woo-gutenberg-products-block'
) }
checked={ showFilterButton }
onChange={ ( value ) =>
setAttributes( {
Expand Down
15 changes: 4 additions & 11 deletions assets/js/blocks/stock-filter/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,10 @@ const Edit = ( {
"Show 'Apply filters' button",
'woo-gutenberg-products-block'
) }
help={
showFilterButton
? __(
'Products will only update when the button is clicked.',
'woo-gutenberg-products-block'
)
: __(
'Products will update as soon as attributes are selected.',
'woo-gutenberg-products-block'
)
}
help={ __(
'Products will update when the button is clicked.',
'woo-gutenberg-products-block'
) }
checked={ showFilterButton }
onChange={ ( value ) =>
setAttributes( {
Expand Down

0 comments on commit 7631019

Please sign in to comment.