Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update empty state for product attributes tab (#38126)
* Remove empty state HTML * Add empty attribute when product has no attributes * Remove unused woocommerce_admin_meta_boxes.has_local_attributes * Remove unused toggle_add_global_attribute_layout * Remove unused button.add_attribute click handling (button doesn't exist anymore) * Fix positioning of Expand / Close * Remove unnecessary add-attribute-container div * Refactor attribute search selection handling * Remove empty attribute if adding an existing attribute * Update e2e test clicking of "Add new" attribute button * Update Tracks handling for "Add new" attribute button * Changelog * Fix action recorded when "Add new" button is clicked * Remove console.log statements * Allow propagation of click event on "Create value" button * Move Tracks wcadmin_product_attributes_buttons action: 'add_existing' to product-tracking TS * Make function names more descriptive. Add comment to clarify why event.preventDefault is used.
- Loading branch information
1 parent
2276953
commit d11f50b
Showing
6 changed files
with
105 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: update | ||
|
||
Update empty state for product attributes tab. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.