Skip to content

Commit

Permalink
prevent removing the inner filter block
Browse files Browse the repository at this point in the history
  • Loading branch information
dinhtungdu committed Sep 2, 2022
1 parent 3d02766 commit 83b7fee
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion assets/js/blocks/active-filters/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"color": {
"text": true,
"background": false
}
},
"lock": false
},
"attributes": {
"displayStyle": {
Expand All @@ -22,6 +23,13 @@
"headingLevel": {
"type": "number",
"default": 3
},
"lock": {
"type": "object",
"default": {
"remove": true,
"move": false
}
}
},
"textdomain": "woo-gutenberg-products-block",
Expand Down
10 changes: 9 additions & 1 deletion assets/js/blocks/price-filter/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"color": {
"text": true,
"background": false
}
},
"lock": false
},
"example": {
"attributes": {
Expand All @@ -38,6 +39,13 @@
"headingLevel": {
"type": "number",
"default": 3
},
"lock": {
"type": "object",
"default": {
"remove": true,
"move": false
}
}
},
"textdomain": "woo-gutenberg-products-block",
Expand Down

0 comments on commit 83b7fee

Please sign in to comment.