Skip to content

Commit

Permalink
Merge pull request #4 from eea/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
laszlocseh authored Jan 13, 2023
2 parents 1c9194e + e629f9f commit 7d420ae
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 3 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ 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.3](https://github.com/eea/volto-cca-policy/compare/0.1.2...0.1.3) - 22 December 2022
### [0.1.4](https://github.com/eea/volto-cca-policy/compare/0.1.3...0.1.4) - 13 January 2023

#### :hammer_and_wrench: Others

- Refs #158294 - Fix languages list. [GhitaB - [`a2386cd`](https://github.com/eea/volto-cca-policy/commit/a2386cd2ca7ba8bdbcc778223516927bf96b0b74)]
- Refs #158294 - Enable volto-embed (index.js is used, not policy.js). [GhitaB - [`55eecd1`](https://github.com/eea/volto-cca-policy/commit/55eecd1e58f9c9e987cb90eed4b0d02e7f22d3f9)]
- Refs #158294 - Enable volto-embed. [GhitaB - [`873ed39`](https://github.com/eea/volto-cca-policy/commit/873ed399cd02bd8c11b2006ea13d6dfc854c3395)]
### [0.1.3](https://github.com/eea/volto-cca-policy/compare/0.1.2...0.1.3) - 22 December 2022

### [0.1.2](https://github.com/eea/volto-cca-policy/compare/0.1.1...0.1.2) - 16 December 2022

#### :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-cca-policy",
"version": "0.1.3",
"version": "0.1.4",
"description": "@eeacms/volto-cca-policy: Volto add-on",
"main": "src/index.js",
"author": "European Environment Agency: IDM2 A-Team",
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ const applyConfig = (config) => {
// ) || ['en'];
config.settings.supportedLanguages = ['en', 'de', 'fr', 'es', 'it'];

// Enable volto-embed
if (config.blocks.blocksConfig.maps) {
config.blocks.blocksConfig.maps.restricted = false;
}

return config;
};

Expand Down
5 changes: 5 additions & 0 deletions src/policy.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,11 @@ const applyConfig = (config) => {
config.blocks.blocksConfig.dividerBlock.mostUsed = true;
}

// Enable volto-embed
if (config.blocks.blocksConfig.maps) {
config.blocks.blocksConfig.maps.restricted = false;
}

// Call to Action
if (config.blocks.blocksConfig.callToActionBlock) {
config.blocks.blocksConfig.callToActionBlock.mostUsed = true;
Expand Down

0 comments on commit 7d420ae

Please sign in to comment.