Skip to content

Commit

Permalink
Merge pull request #33 from eea/develop
Browse files Browse the repository at this point in the history
Realease - include country flag block
  • Loading branch information
claudiaifrim committed Dec 14, 2023
2 parents 5ba7ef5 + 28515b2 commit 178a2e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

### [0.1.27](https://github.com/eea/volto-forest-policy/compare/0.1.26...0.1.27) - 24 November 2023
### [0.1.28](https://github.com/eea/volto-forest-policy/compare/0.1.27...0.1.28) - 14 December 2023

### [0.1.27](https://github.com/eea/volto-forest-policy/compare/0.1.26...0.1.27) - 25 November 2023

#### :hammer_and_wrench: Others

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eeacms/volto-forest-policy",
"version": "0.1.27",
"version": "0.1.28",
"description": "@eeacms/volto-forest-policy: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ const overrideBlocks = {
embed_eea_map_block: {
group: 'data_visualizations',
},
countryFlag: {
group: 'custom_addons',
},
};

function addCustomGroup(config) {
Expand Down Expand Up @@ -94,7 +97,7 @@ function restrictAvailableBlocks(config) {
config.blocks.blocksConfig = {
...Object.keys(config.blocks.blocksConfig).reduce((acc, blockKey) => {
if (
['treemapChart', 'countryFlag', 'plotly_chart'].includes(
['treemapChart', 'plotly_chart'].includes(
config.blocks.blocksConfig[blockKey].id,
)
) {
Expand Down

0 comments on commit 178a2e4

Please sign in to comment.