woocommerce/plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit
Manish Menaria c70750b85a
Fix: Show preview label only when Product Collection block is selected (#48795)
* Fix: Show preview label only when Product Collection block is selected

Updated the `ProductCollectionContent` component to display the preview label only when the Product Collection block itself is selected. Previously, the preview label was shown when either the block or any of its inner blocks were selected.

Key Changes:
- Removed the `isSelectedOrInnerBlockSelected` constant and its logic.
- Updated the condition to use `props.isSelected` directly to determine if the block is selected.

* Add changefile(s) from automation for the following project(s): woocommerce-blocks

* Update E2E tests

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-06-28 16:48:11 +05:30
..
inspector-advanced-controls Product Collection: Implement Preview Mode (#46369) 2024-05-15 13:18:43 +05:30
inspector-controls Product Collection: Handpicked Products filter is broken on stores with high volume of products (#48379) 2024-06-19 13:35:53 +02:00
toolbar-controls Product Collection: Implement Preview Mode (#46369) 2024-05-15 13:18:43 +05:30
collection-chooser.tsx New flow of adding Product Collection and basic set of Collections (#42696) 2023-12-27 11:07:27 +01:00
collection-selection-modal.tsx New flow of adding Product Collection and basic set of Collections (#42696) 2023-12-27 11:07:27 +01:00
editor.scss Product Collection: Fix Preview badge border-radius and alignment (#48856) 2024-06-28 11:14:59 +05:30
index.tsx Product Collection: Implement Preview Mode (#46369) 2024-05-15 13:18:43 +05:30
product-collection-content.tsx Fix: Show preview label only when Product Collection block is selected (#48795) 2024-06-28 16:48:11 +05:30
product-collection-placeholder.tsx Product Collection: telemetry choosing collection (#45827) 2024-04-02 14:12:20 +02:00